mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
change message critical state for arm authorization
This commit is contained in:
committed by
Beat Küng
parent
c6e2722b8f
commit
9116acc431
@@ -163,7 +163,7 @@ static uint8_t _auth_method_two_arm_check()
|
||||
auth_timeout = now + (arm_parameters.struct_value.auth_method_param.auth_method_arm_timeout_msec * 1000);
|
||||
state = ARM_AUTH_WAITING_AUTH;
|
||||
|
||||
mavlink_log_critical(mavlink_log_pub, "Arm auth: Requesting authorization...");
|
||||
mavlink_log_info(mavlink_log_pub, "Arm auth: Requesting authorization...");
|
||||
|
||||
return vehicle_command_ack_s::VEHICLE_RESULT_TEMPORARILY_REJECTED;
|
||||
}
|
||||
@@ -222,9 +222,9 @@ void arm_auth_update(hrt_abstime now, bool param_update)
|
||||
break;
|
||||
|
||||
case vehicle_command_ack_s::VEHICLE_RESULT_ACCEPTED:
|
||||
mavlink_log_critical(mavlink_log_pub,
|
||||
"Arm auth: Authorized for the next %u seconds",
|
||||
command_ack.result_param2);
|
||||
mavlink_log_info(mavlink_log_pub,
|
||||
"Arm auth: Authorized for the next %u seconds",
|
||||
command_ack.result_param2);
|
||||
state = ARM_AUTH_MISSION_APPROVED;
|
||||
auth_timeout = now + (command_ack.result_param2 * 1000000);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user