Skip to content

navigation: add MSP precision landing target consumer for MC/VTOL#11554

Draft
mart1npetroff wants to merge 1 commit into
iNavFlight:maintenance-10.xfrom
mart1npetroff:msp2-inav-set-precision-landing-and-posh-target
Draft

navigation: add MSP precision landing target consumer for MC/VTOL#11554
mart1npetroff wants to merge 1 commit into
iNavFlight:maintenance-10.xfrom
mart1npetroff:msp2-inav-set-precision-landing-and-posh-target

Conversation

@mart1npetroff
Copy link
Copy Markdown

Implement an INAV-side precision-landing target consumer that accepts external target offsets over MSP and applies correction only in MC/VTOL POSHOLD/LAND contexts, without direct motor/attitude control and without mode switching.

  • add MSP2_INAV_SET_PRECISION_LANDING_TARGET (0x2231 / 8753)
  • add precision landing state machine module (cache/validate/use/fallback)
  • integrate with NAV + multicopter position controller + LAND flow
  • add nav status exposure for precision states (OSD/DJI mappings)
  • add CLI settings for source/validation/correction/retry behavior
  • keep descent profile on standard LAND logic (remove custom PL descent tuning)
  • add retry timeout auto mode: nav_precision_landing_retry_timeout_ms=0 => 2 * lost_hold_time_ms
  • document MSP payload/reply and navigation behavior in docs

Safety behavior:

  • no activation in fixed-wing profile
  • no correction use in failsafe
  • stale/low-confidence/bad-frame targets are rejected
  • target loss recovery: HOLD -> CLIMB_AND_RETRY -> NORMAL_LAND fallback

Implement an INAV-side precision-landing target consumer that accepts external
target offsets over MSP and applies correction only in MC/VTOL POSHOLD/LAND
contexts, without direct motor/attitude control and without mode switching.

- add MSP2_INAV_SET_PRECISION_LANDING_TARGET (0x2231 / 8753)
- add precision landing state machine module (cache/validate/use/fallback)
- integrate with NAV + multicopter position controller + LAND flow
- add nav status exposure for precision states (OSD/DJI mappings)
- add CLI settings for source/validation/correction/retry behavior
- keep descent profile on standard LAND logic (remove custom PL descent tuning)
- add retry timeout auto mode:
  nav_precision_landing_retry_timeout_ms=0 => 2 * lost_hold_time_ms
- document MSP payload/reply and navigation behavior in docs

Safety behavior:
- no activation in fixed-wing profile
- no correction use in failsafe
- stale/low-confidence/bad-frame targets are rejected
- target loss recovery: HOLD -> CLIMB_AND_RETRY -> NORMAL_LAND fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant