Skip to content

Commit

Permalink
AP_Mount: fix object tracking command for ViewPro
Browse files Browse the repository at this point in the history
The command should also take negative values
  • Loading branch information
eppravitra committed Feb 5, 2025
1 parent 26c61f5 commit 53298b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount_Viewpro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ bool AP_Mount_Viewpro::send_tracking_command(TrackingCommand cmd, uint8_t value)
}

// send camera command2 and corresponding parameter values
bool AP_Mount_Viewpro::send_tracking_command2(TrackingCommand2 cmd, uint16_t param1, uint16_t param2)
bool AP_Mount_Viewpro::send_tracking_command2(TrackingCommand2 cmd, int16_t param1, int16_t param2)
{
// fill in packet
const E2Packet e2_packet {
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Mount/AP_Mount_Viewpro.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class AP_Mount_Viewpro : public AP_Mount_Backend_Serial
bool send_tracking_command(TrackingCommand cmd, uint8_t value);

// send camera command2 and corresponding parameter values
bool send_tracking_command2(TrackingCommand2 cmd, uint16_t param1, uint16_t param2);
bool send_tracking_command2(TrackingCommand2 cmd, int16_t param1, int16_t param2);

// send vehicle attitude and position to gimbal
bool send_m_ahrs();
Expand Down

0 comments on commit 53298b8

Please sign in to comment.