Browse Source

GCS_MAVLink: make correct_offboard_timestamp_usec_to_ms protected

for use by vehicle code
c415-sdk
Andrew Tridgell 5 years ago
parent
commit
9466e7e71e
  1. 12
      libraries/GCS_MAVLink/GCS.h

12
libraries/GCS_MAVLink/GCS.h

@ -511,6 +511,12 @@ protected: @@ -511,6 +511,12 @@ protected:
void manual_override(RC_Channel *c, int16_t value_in, uint16_t offset, float scaler, const uint32_t tnow, bool reversed = false);
/*
correct an offboard timestamp in microseconds to a local time
since boot in milliseconds
*/
uint32_t correct_offboard_timestamp_usec_to_ms(uint64_t offboard_usec, uint16_t payload_size);
private:
// last time we got a non-zero RSSI from RADIO_STATUS
@ -791,12 +797,6 @@ private: @@ -791,12 +797,6 @@ private:
void lock_channel(const mavlink_channel_t chan, bool lock);
/*
correct an offboard timestamp in microseconds to a local time
since boot in milliseconds
*/
uint32_t correct_offboard_timestamp_usec_to_ms(uint64_t offboard_usec, uint16_t payload_size);
mavlink_signing_t signing;
static mavlink_signing_streams_t signing_streams;
static uint32_t last_signing_save_ms;

Loading…
Cancel
Save