diff --git a/boards/modalai/voxl2/target/voxl-px4-start b/boards/modalai/voxl2/target/voxl-px4-start index e93843783293..43b7c7a88aa0 100755 --- a/boards/modalai/voxl2/target/voxl-px4-start +++ b/boards/modalai/voxl2/target/voxl-px4-start @@ -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 diff --git a/src/modules/commander/UserModeIntention.hpp b/src/modules/commander/UserModeIntention.hpp index 3c18a6ff7399..17aaf0deb51f 100644 --- a/src/modules/commander/UserModeIntention.hpp +++ b/src/modules/commander/UserModeIntention.hpp @@ -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()