You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suspicion is that this is because 800Hz is close to the backend IMU rate of 1000Hz. 800Hz gives a tick length of 1250us and the IMU period is 1000us. Since we always wait for an IMU sample before scheduling the next tick if we overrun by 250us I think we will always slip loop rate tasks. Just a theory.
I added a dummy callback to the runcam driver (doesn't matter where it is this was just convenient):
I then included this in the vehicle schedule table at the loop rate:
I then set
SCHED_DEBUG = 2
andSCHED_LOOP_RATE = 800
The empty task is then reported to always slip:
My suspicion is that this is because 800Hz is close to the backend IMU rate of 1000Hz. 800Hz gives a tick length of 1250us and the IMU period is 1000us. Since we always wait for an IMU sample before scheduling the next tick if we overrun by 250us I think we will always slip loop rate tasks. Just a theory.
@tridge @peterbarker I could use some help figuring this out
Version
4.0.4-dev
Platform
[X] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Airframe type
All
Hardware type
Tested on an omnibusF4pro
The text was updated successfully, but these errors were encountered: