Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pure mode #1815

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Add pure mode #1815

wants to merge 20 commits into from

Commits on Nov 22, 2022

  1. core: add compatibility mode setter for system

    This adds an API to set the compatibility_mode specifically to PX4,
    ArduPilot, or Pure. Pure is a new mode that should be based on common
    without any non-standard customizations.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    9299471 View commit details
    Browse the repository at this point in the history
  2. action: only switch to Hold for PX4

    In Pure mode we don't require this safety precaution.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    cdf7df6 View commit details
    Browse the repository at this point in the history
  3. action: update reboot and shutdown command

    The meaning of param4 has changed in the spec, so we have to update it.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    c431ded View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8834fd8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0da1ef7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    304daf8 View commit details
    Browse the repository at this point in the history
  7. action: mark hack for takeoff altitude

    PX4 currently requires the takeoff altitude as a parameter instead of
    the command param. This hopefully changes in the future.
    
    This commit changes the implementation slightly and also makes sure that
    the hack only exists for PX4 but not for ArduPilot or Pure mode.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    4ac541b View commit details
    Browse the repository at this point in the history
  8. action: auto change mode for REPOSITION

    According to the spec we could switch mode automatically when sending
    the DO_REPOSITION command. Therefore, for ArduPilot and Pure mode, we
    should actually use this.
    
    For PX4, we need to leave the hack which switches to Hold first, at
    least for the time being.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    f369152 View commit details
    Browse the repository at this point in the history
  9. action: only attempt ORBIT against PX4

    This excludes ORBIT from ArduPilot and Pure mode for now as it is
    still marked WIP. We need to decide if that's the right way to go
    forward, or if it should still be possible to use it in these
    compatibilitylmodes.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    b8190a2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c4e4eca View commit details
    Browse the repository at this point in the history
  11. calibration: return unsupported if not using PX4

    This is because ArduPilot would not work, and because it is not specced
    for Pure mode.
    julianoes committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    938e855 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9e70c7c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6c548af View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8a91a49 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    92c529b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    122cfb9 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    dc9da9d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    539f9bb View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8ffd92c View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. Fixes after rebase

    Signed-off-by: Julian Oes <[email protected]>
    julianoes committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    45c2e13 View commit details
    Browse the repository at this point in the history