Skip to content

Commit

Permalink
AP_Mount: topotek enum fix for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 4, 2024
1 parent c147f63 commit 9b2b30d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libraries/AP_Mount/AP_Mount_Topotek.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ class AP_Mount_Topotek : public AP_Mount_Backend_Serial
// address (2nd and 3rd bytes of packet)
// first byte is always U followed by one of the other options
enum class AddressByte : uint8_t {
UART = 'U',
LENS = 'M',
SYSTEM_AND_IMAGE = 'D',
AUXILIARY_EQUIPMENT = 'E',
NETWORK = 'P',
GIMBAL = 'G',
SYSTEM_AND_IMAGE = 68, // 'D'
AUXILIARY_EQUIPMENT = 69, // 'E'
GIMBAL = 71, // 'G'
LENS = 77, // 'M'
NETWORK = 80, // 'P'
UART = 85, // 'U'
};

// control byte (read or write)
// sent as 7th byte of packet
enum class ControlByte : uint8_t {
READ = 'r',
WRITE = 'w',
READ = 114, // 'r'
WRITE = 119, // 'w'
};

// parsing state
Expand Down

0 comments on commit 9b2b30d

Please sign in to comment.