Peter Barker
01e0c03a12
AP_Scheduler: add singleton
7 years ago
Andrew Tridgell
8907cb3b23
AP_Scheduler: time in seconds should be a float
7 years ago
Andrew Tridgell
491715bec7
AP_Scheduler: added get_last_loop_time_s()
...
this gives compatibility with previous G_Dt in copter
7 years ago
Andrew Tridgell
e0c9d9b592
AP_Scheduler: fixed loop time available
7 years ago
Andrew Tridgell
620d6ab4b8
AP_Scheduler: fixed merge issues
7 years ago
Peter Barker
73c0905b5e
AP_Scheduler: pass log-performance-bit at init time rather than update time
7 years ago
Peter Barker
4672e9d4eb
AP_Scheduler: resolve debug name conflict
7 years ago
Peter Barker
d3c1b720c6
AP_Scheduler: move logging of PM messages to AP_Scheduler
7 years ago
Peter Barker
d151b27e92
AP_Scheduler: move PERF: statustext sending into AP_Scheduler
7 years ago
Peter Barker
4909000441
AP_Scheduler: implement loop()
7 years ago
Peter Barker
e713802c24
AP_Scheduler: add accessor for tick counter
7 years ago
Andrew Tridgell
8b0e9bcff4
AP_Scheduler: use pre-computed loop constants
...
this prevents changing the loop rate without a reboot. Too many
subsystems rely on a consistent loop rate to allow it to be changed
7 years ago
Peter Barker
f2242e07db
AP_Scheduler: remove memoisation in loop_period_s()
7 years ago
Peter Barker
a6ac37d0ba
AP_Scheduler: eliminate MAIN_LOOP_SECONDS macro
7 years ago
Andrew Tridgell
580af4a69a
AP_Scheduler: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
d3e12eb899
AP_Scheduler: add static create method
7 years ago
Peter Barker
b445313bf1
AP_Scheduler: remove loop-period argument from load_average
...
This now comes from a parameter rather than being hard-set
in the vehicle code
Also adds a method returning the max loop period based on the
loop rate
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
murata
bb1a787852
AP_Scheduler: To add a comment to _loop_rate_hz variable.
8 years ago
murata
7721290160
AP_Scheduler:time_available value type invalid uint16_t to valid uint32_t.
9 years ago
Andrew Tridgell
ced4cce358
AP_Scheduler: added optional perf counters at SCHED_DEBUG >= 4
9 years ago
Lucas De Marchi
f5437f30ac
AP_Scheduler: replace header guard with pragma once
9 years ago
Andrew Tridgell
1b1be7e4a2
AP_Scheduler: switch to Hz based scheduler config
9 years ago
Gustavo Jose de Sousa
8fe466ce27
AP_Scheduler: add initializer for task field "name"
...
We use define it as an empty macro if on AVR board.
10 years ago
Gustavo Jose de Sousa
8018748fe2
AP_Scheduler: add field "name" to task structure for logging purposes
...
That field will be useful for logging as it is easier to know what task a log
is related to by using the task's name rather than using the number.
10 years ago
Gustavo Jose de Sousa
c04b984e6c
AP_Scheduler: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
dd691ae75c
AP_Scheduler: all vehicles now use functors
10 years ago
Andrew Tridgell
7db9da6545
AP_Scheduler: removed delegate ptr handling
...
no longer needed
10 years ago
Lucas De Marchi
78b00784fb
AP_Scheduler: allow to use functor
10 years ago
Lucas De Marchi
5dfb3ed70c
AP_Scheduler: replace tabs with spaces
10 years ago
Andrew Tridgell
0847bd2608
AP_Scheduler: use APM_BUILD_DELEGATES
10 years ago
Andrew Tridgell
1237772479
AP_Scheduler: support member functions for rover
10 years ago
Andrew Tridgell
67f5ba0b94
AP_Scheduler: added current_task static
...
will be used to debug stuck tasks on PX4
11 years ago
Andrew Tridgell
dd4b9275fd
AP_Scheduler: improved the accuracy of the scheduling code
...
prevent accumulated micros() errors in run()
11 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
a192b9ee46
AP_Scheduler: added load_average() function
...
useful to give a load average in SYS_STATUS mavlink message
12 years ago
Andrew Tridgell
1cb64dacf9
AP_Scheduler: expose debug variable
12 years ago
Andrew Tridgell
7ddadcf34e
AP_Scheduler: added new scheduler library
...
this will be used for main loop control
12 years ago