mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 18:03:33 +08:00
mavlink: remove typedef of anonymous struct
Clang doesn't seem to like these.
This commit is contained in:
@@ -105,14 +105,14 @@ private:
|
||||
// There are MAVLINK_COMM_0 to MAVLINK_COMM_3, so it should be 4.
|
||||
static const unsigned MAX_MAVLINK_CHANNEL = 4;
|
||||
|
||||
typedef struct {
|
||||
struct command_item_s {
|
||||
mavlink_command_long_t command = {};
|
||||
hrt_abstime timestamp_us = 0;
|
||||
hrt_abstime last_time_sent_us = 0;
|
||||
int8_t num_sent_per_channel[MAX_MAVLINK_CHANNEL] = {-1, -1, -1, -1}; // -1: channel did not request this command to be sent, -2: channel got an ack for this command
|
||||
} command_item_t;
|
||||
};
|
||||
|
||||
TimestampedList<command_item_t> _commands{3};
|
||||
TimestampedList<command_item_s> _commands{3};
|
||||
|
||||
bool _debug_enabled = false;
|
||||
static constexpr uint8_t RETRIES = 3;
|
||||
|
||||
Reference in New Issue
Block a user