Skip to content

Commit

Permalink
Changed default setting of navigation mode to manual so that it doesn…
Browse files Browse the repository at this point in the history
…'t need to be commanded in the startup script
  • Loading branch information
katzfey committed Jul 17, 2023
1 parent b746ab9 commit 41a57bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion boards/modalai/voxl2/target/voxl-px4-start
Expand Up @@ -164,7 +164,6 @@ qshell manual_control start
qshell control_allocator start
qshell rc_update start
qshell commander start
qshell commander mode manual
qshell param_set_selector start

# This is needed for altitude and position hold modes
Expand Down
4 changes: 2 additions & 2 deletions src/modules/commander/UserModeIntention.hpp
Expand Up @@ -73,8 +73,8 @@ class UserModeIntention : ModuleParams
const vehicle_status_s &_vehicle_status;
const HealthAndArmingChecks &_health_and_arming_checks;

uint8_t _user_intented_nav_state{vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER}; ///< Current user intended mode
uint8_t _nav_state_after_disarming{vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER}; ///< Mode that is switched into after landing/disarming
uint8_t _user_intented_nav_state{vehicle_status_s::NAVIGATION_STATE_MANUAL}; ///< Current user intended mode
uint8_t _nav_state_after_disarming{vehicle_status_s::NAVIGATION_STATE_MANUAL}; ///< Mode that is switched into after landing/disarming

bool _ever_had_mode_change{false}; ///< true if there was ever a mode change call (also if the same mode as already set)
bool _had_mode_change{false}; ///< true if there was a mode change call since the last getHadModeChangeAndClear()
Expand Down

0 comments on commit 41a57bc

Please sign in to comment.