diff --git a/src/modules/commander/Commander.hpp b/src/modules/commander/Commander.hpp index d5d92e1d414bbe6c863834ebcdfdf0d69ac5aece..09e6103a738ee29ec04dce1a1582727c1dfba0d1 100644 --- a/src/modules/commander/Commander.hpp +++ b/src/modules/commander/Commander.hpp @@ -92,7 +92,7 @@ private: // Subscriptions Subscription<mission_result_s> _mission_result_sub; - bool handle_command(vehicle_status_s *status_local, const safety_s &safety_local, const vehicle_command_s &cmd, + bool 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, orb_advert_t *command_ack_pub, bool *changed); diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 75f3389ab4ab2c1f7af9cedbcea745218d74f85c..660f5cc697471bc3b7c481835e1ee5b06c7cad28 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -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; } }