Skip to content

Commit

Permalink
AP_Mount: viewpro formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 19, 2023
1 parent 6b885f6 commit 63c6992
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_Mount/AP_Mount_Viewpro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ bool AP_Mount_Viewpro::set_lock(bool lock)
A1Packet a1_packet {
.content {
frame_id: FrameId::A1,
servo_status: lock ? ServoStatus::follow_yaw_disable : ServoStatus::follow_yaw
servo_status: lock ? ServoStatus::FOLLOW_YAW_DISABLE : ServoStatus::FOLLOW_YAW
}
};

Expand Down Expand Up @@ -508,7 +508,7 @@ bool AP_Mount_Viewpro::send_target_rates(float pitch_rads, float yaw_rads, bool
A1Packet a1_packet {
.content {
frame_id: FrameId::A1,
servo_status: ServoStatus::manual_speed_mode,
servo_status: ServoStatus::MANUAL_SPEED_MODE,
yaw_be: htobe16(yaw_rate_output),
pitch_be: htobe16(pitch_rate_output)
}
Expand Down Expand Up @@ -546,7 +546,7 @@ bool AP_Mount_Viewpro::send_target_angles(float pitch_rad, float yaw_rad, bool y
A1Packet a1_packet {
.content {
frame_id: FrameId::A1,
servo_status: ServoStatus::manual_absolute_angle_mode,
servo_status: ServoStatus::MANUAL_ABSOLUTE_ANGLE_MODE,
yaw_be: htobe16(yaw_angle_output),
pitch_be: htobe16(pitch_angle_output)
}
Expand Down
8 changes: 4 additions & 4 deletions libraries/AP_Mount/AP_Mount_Viewpro.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ class AP_Mount_Viewpro : public AP_Mount_Backend

// A1 servo status enum (used in A1, B1 packets)
enum class ServoStatus : uint8_t {
manual_speed_mode = 0x01,
follow_yaw = 0x03,
manual_absolute_angle_mode = 0x0B,
follow_yaw_disable = 0x0A,
MANUAL_SPEED_MODE = 0x01,
FOLLOW_YAW = 0x03,
MANUAL_ABSOLUTE_ANGLE_MODE = 0x0B,
FOLLOW_YAW_DISABLE = 0x0A,
};

// C1 image sensor choice
Expand Down

0 comments on commit 63c6992

Please sign in to comment.