-
Notifications
You must be signed in to change notification settings - Fork 18.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AC_PrecLand: Use sensor timestamp to match inertial frame corrections
Co-authored-by: Dr.-Ing. Amilcar do Carmo Lucas <[email protected]> If the sensor sets the timestamp with the sensor frame then it attempts to match it against inertial frame timestamps. Sensor frames can have widely varying latencies so this is essential to safely correlate the attitude compensation against any given sensor reading. This effectively auto-detects the sensor latency and makes the PLND_LAG manual setting unnecessary. The only caveat is that PLND_LAG must be set large enough to hold the biggest sensor latency. So if used with a sensor that supports time-stamping PLND_LAG should be set to something large like 0.250 (s). - Move inertial_data_delayed to _inertial_data_delayed - Separate out sync_frames logic, make _inertial_data_delayed class struct - Run forward prediction from synced frame - Remove _ prefixes in non-member (local) variable's names
- Loading branch information
1 parent
e58dd0d
commit b3248ed
Showing
2 changed files
with
65 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters