mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
Commander::handle_command() remove unused safety parameter
This commit is contained in:
@@ -644,7 +644,7 @@ transition_result_t arm_disarm(bool arm, orb_advert_t *mavlink_log_pub_local, co
|
||||
}
|
||||
|
||||
bool
|
||||
Commander::handle_command(vehicle_status_s *status_local, const safety_s& safety_local,
|
||||
Commander::handle_command(vehicle_status_s *status_local,
|
||||
const vehicle_command_s& cmd, actuator_armed_s *armed_local,
|
||||
home_position_s *home, const vehicle_global_position_s& global_pos,
|
||||
const vehicle_local_position_s& local_pos, orb_advert_t *home_pub,
|
||||
@@ -2728,7 +2728,7 @@ Commander::run()
|
||||
orb_copy(ORB_ID(vehicle_command), cmd_sub, &cmd);
|
||||
|
||||
/* handle it */
|
||||
if (handle_command(&status, safety, cmd, &armed, &_home, global_position, local_position, &home_pub, &command_ack_pub, &status_changed)) {
|
||||
if (handle_command(&status, cmd, &armed, &_home, global_position, local_position, &home_pub, &command_ack_pub, &status_changed)) {
|
||||
status_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user