Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commander: require local position for home
This fixes (or at least works around) a race condition where the `status_flags.condition_local_position_valid` is still `false` but the `status_flags.condition_global_position_valid` is already `true`. The way to reproduce it is t: 1. Poll home position to check if home is initialized 2. Send arm and takeoff command as soon as home is initialized Then arming will succeed but takeoff will fail because there is a check for `status_flags.condition_local_position_valid` in `main_state_transition()` to enter TAKEOFF.
- Loading branch information
ee6a792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting:
hopefully things like that are gone once we switched to local