Skip to content

Commit

Permalink
change message critical state for arm authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
qperrotElistair authored and bkueng committed Sep 9, 2020
1 parent c6e2722 commit 9116acc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9116acc

Please sign in to comment.