Skip to content

Commit

Permalink
AP_Mount: gimbal_manager_set_pitchyaw is not a command
Browse files Browse the repository at this point in the history
  • Loading branch information
olliw42 authored and rmackay9 committed Nov 5, 2023
1 parent c1831ba commit 4ffdb65
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_Mount/AP_Mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ MAV_RESULT AP_Mount::handle_command_do_gimbal_manager_configure(const mavlink_co
return backend->handle_command_do_gimbal_manager_configure(packet, msg);
}

void AP_Mount::handle_gimbal_manager_set_attitude(const mavlink_message_t &msg){
void AP_Mount::handle_gimbal_manager_set_attitude(const mavlink_message_t &msg) {
mavlink_gimbal_manager_set_attitude_t packet;
mavlink_msg_gimbal_manager_set_attitude_decode(&msg,&packet);

Expand Down Expand Up @@ -445,7 +445,7 @@ void AP_Mount::handle_gimbal_manager_set_attitude(const mavlink_message_t &msg){
}
}

void AP_Mount::handle_command_gimbal_manager_set_pitchyaw(const mavlink_message_t &msg)
void AP_Mount::handle_gimbal_manager_set_pitchyaw(const mavlink_message_t &msg)
{
mavlink_gimbal_manager_set_pitchyaw_t packet;
mavlink_msg_gimbal_manager_set_pitchyaw_decode(&msg,&packet);
Expand Down Expand Up @@ -906,7 +906,7 @@ void AP_Mount::handle_message(mavlink_channel_t chan, const mavlink_message_t &m
handle_gimbal_manager_set_attitude(msg);
break;
case MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_PITCHYAW:
handle_command_gimbal_manager_set_pitchyaw(msg);
handle_gimbal_manager_set_pitchyaw(msg);
break;
case MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION:
handle_gimbal_device_information(msg);
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class AP_Mount
MAV_RESULT handle_command_do_gimbal_manager_pitchyaw(const mavlink_command_int_t &packet);
MAV_RESULT handle_command_do_gimbal_manager_configure(const mavlink_command_int_t &packet, const mavlink_message_t &msg);
void handle_gimbal_manager_set_attitude(const mavlink_message_t &msg);
void handle_command_gimbal_manager_set_pitchyaw(const mavlink_message_t &msg);
void handle_gimbal_manager_set_pitchyaw(const mavlink_message_t &msg);
void handle_global_position_int(const mavlink_message_t &msg);
void handle_gimbal_device_information(const mavlink_message_t &msg);
void handle_gimbal_device_attitude_status(const mavlink_message_t &msg);
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount_Alexmos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void AP_Mount_Alexmos::read_incoming()

numc = _port->available();

if (numc < 0 ){
if (numc < 0 ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void AP_Mount_Backend::clear_roi_target()
_roi_target_set = false;

// reset the mode if in GPS tracking mode
if (_mode == MAV_MOUNT_MODE_GPS_POINT) {
if (get_mode() == MAV_MOUNT_MODE_GPS_POINT) {
MAV_MOUNT_MODE default_mode = (MAV_MOUNT_MODE)_params.default_mode.get();
set_mode(default_mode);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void AP_Mount_SToRM32_serial::read_incoming() {

numc = _port->available();

if (numc < 0 ){
if (numc < 0 ) {
return;
}

Expand Down

0 comments on commit 4ffdb65

Please sign in to comment.