Mavlink set last sent timestamp to space out initial publication

- remove QURT defines no longer required
This commit is contained in:
Daniel Agar
2018-06-09 13:38:44 +02:00
committed by Lorenz Meier
parent 98465171aa
commit a99f75dde2
16 changed files with 75 additions and 133 deletions
+4 -4
View File
@@ -84,7 +84,7 @@ public:
void handle_mavlink_command_ack(const mavlink_command_ack_t &ack, uint8_t from_sysid, uint8_t from_compid);
private:
MavlinkCommandSender();
MavlinkCommandSender() = default;
~MavlinkCommandSender();
@@ -111,11 +111,11 @@ private:
int8_t num_sent_per_channel[MAX_MAVLINK_CHANNEL] = {-1, -1, -1, -1};
} command_item_t;
TimestampedList<command_item_t> _commands;
TimestampedList<command_item_t> _commands{3};
bool _debug_enabled = false;
static const uint8_t RETRIES = 3;
static const uint64_t TIMEOUT_US = 500000;
static constexpr uint8_t RETRIES = 3;
static constexpr uint64_t TIMEOUT_US = 500000;
/* do not allow copying or assigning this class */
MavlinkCommandSender(const MavlinkCommandSender &) = delete;