|
|
|
@ -737,6 +737,8 @@ Commander::handle_command(const vehicle_command_s &cmd)
@@ -737,6 +737,8 @@ Commander::handle_command(const vehicle_command_s &cmd)
|
|
|
|
|
/* POSCTL */ |
|
|
|
|
reset_posvel_validity(); |
|
|
|
|
main_ret = main_state_transition(_status, commander_state_s::MAIN_STATE_POSCTL, _status_flags, _internal_state); |
|
|
|
|
mavlink_log_info(&_mavlink_log_pub, "cmd mode:%d,ret:%d,lo:%d,go:%d\n",custom_main_mode,main_ret,_status_flags.condition_local_altitude_valid,_status_flags.condition_global_position_valid); |
|
|
|
|
// main_ret = TRANSITION_CHANGED;
|
|
|
|
|
|
|
|
|
|
} else if (custom_main_mode == PX4_CUSTOM_MAIN_MODE_AUTO) { |
|
|
|
|
/* AUTO */ |
|
|
|
|