Commit Graph

30714 Commits

Author SHA1 Message Date
Andrew Tridgell
00ec3efb48 Copter: initialise G_Dt to 1.0/400 2018-02-13 17:15:05 +11:00
Andrew Tridgell
8907cb3b23 AP_Scheduler: time in seconds should be a float 2018-02-13 17:15:05 +11:00
Peter Barker
50ccbb5d0c Tools: autotest: correct speedup parameter handling 2018-02-13 17:15:05 +11:00
Peter Barker
aeb99c675b Tools: autotest: remove racey mavproxy.expect
The autopilot could well have emitted the statustext before we
start to expect() it
2018-02-13 17:15:05 +11:00
Peter Barker
44a1553535 Sub: eliminate perf_update scheduler table shim 2018-02-13 17:15:05 +11:00
Peter Barker
3859e5dfb1 Plane: eliminate update_perf_logging scheduler table shim 2018-02-13 17:15:05 +11:00
Peter Barker
730adc3f7c Copter: eliminate perf_update scheduler table shim 2018-02-13 17:15:05 +11:00
Peter Barker
90d26a5100 Rover: eliminate perf_update scheduler table shim 2018-02-13 17:15:05 +11:00
Peter Barker
8288198ac8 AP_Scheduler: force single-precision floating point calculations 2018-02-13 17:15:05 +11:00
Andrew Tridgell
f06fdf330e Copter: use get_last_loop_time_s() for G_Dt 2018-02-13 17:15:05 +11:00
Andrew Tridgell
491715bec7 AP_Scheduler: added get_last_loop_time_s()
this gives compatibility with previous G_Dt in copter
2018-02-13 17:15:05 +11:00
Andrew Tridgell
f436901517 AP_Scheduler: fixed perf info to match previous behaviour 2018-02-13 17:15:05 +11:00
Andrew Tridgell
b7c4dea9d3 HAL_ChibiOS: gain back 250usec in loop time
if we have already called delay_microseconds_boost() then we know
we've given up time to drivers, so we can avoid the extra delay in the
HAL
2018-02-13 17:15:05 +11:00
Andrew Tridgell
e0c9d9b592 AP_Scheduler: fixed loop time available 2018-02-13 17:15:05 +11:00
Andrew Tridgell
24d6493453 AP_Scheduler: make loop times cover INS wait_for_sample
this matches past behaviour, and gives much more useful information to
a user wanting to know if their board it meeting its desired loop rate
2018-02-13 17:15:05 +11:00
Andrew Tridgell
434c3fffc7 AP_Scheduler: fixed filtered loop time 2018-02-13 17:15:05 +11:00
Andrew Tridgell
832a96d29f Sub: use filtered loop time 2018-02-13 17:15:05 +11:00
Andrew Tridgell
e0de4bccdf Copter: use filtered loop time 2018-02-13 17:15:05 +11:00
Andrew Tridgell
80c45a7431 Rover: use filtered loop time 2018-02-13 17:15:05 +11:00
Andrew Tridgell
36660b2124 Plane: use filtered loop time 2018-02-13 17:15:05 +11:00
Andrew Tridgell
620d6ab4b8 AP_Scheduler: fixed merge issues 2018-02-13 17:15:05 +11:00
Peter Barker
ae958632ec Sub: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
4586b892f2 Plane: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
de56ae56e1 Copter: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
c2663fca9e Tracker: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
7b6bc4adf1 Rover: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
73c0905b5e AP_Scheduler: pass log-performance-bit at init time rather than update time 2018-02-13 17:15:05 +11:00
Peter Barker
4672e9d4eb AP_Scheduler: resolve debug name conflict 2018-02-13 17:15:05 +11:00
Peter Barker
8cae776448 Plane: move logging of PM and PERF messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
55c27dfc56 Rover: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
980fbf6cfb Sub: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
bfc373aeff Copter: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
30d813a83e DataFlash: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
d3c1b720c6 AP_Scheduler: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
b2e2b91d7e Rover: move PERF: statustext sending into AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
375911cd7c Copter: move PERF: statustext sending into AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
3e6ba8d96e Sub: move PERF: statustext sending into AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
d151b27e92 AP_Scheduler: move PERF: statustext sending into AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker
baa6e04854 AP_Scheduler: change loop time to remove sleeping in wait_for_sample 2018-02-13 17:15:05 +11:00
Peter Barker
7313d9e7a7 Sub: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker
d9bb546048 Rover: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker
02540fdbf9 Plane: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker
80a3d63264 Copter: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker
4909000441 AP_Scheduler: implement loop() 2018-02-13 17:15:05 +11:00
Peter Barker
096f7367bf AP_InertialSensor: add ins() to AP:: namespace 2018-02-13 17:15:05 +11:00
Peter Barker
73092c3c30 Plane: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Peter Barker
9bb1224cef Sub: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Peter Barker
7f69c5d26d Copter: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Peter Barker
211e7416a9 Rover: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Peter Barker
e713802c24 AP_Scheduler: add accessor for tick counter 2018-02-13 17:15:05 +11:00