mirror of https://github.com/ArduPilot/ardupilot
uncrustify libraries/AP_GPS/AP_GPS_MTK16.h
This commit is contained in:
parent
c901ad2ebf
commit
175ba76d13
|
@ -19,22 +19,22 @@
|
||||||
class AP_GPS_MTK16 : public GPS {
|
class AP_GPS_MTK16 : public GPS {
|
||||||
public:
|
public:
|
||||||
AP_GPS_MTK16(Stream *s);
|
AP_GPS_MTK16(Stream *s);
|
||||||
virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE);
|
virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE);
|
||||||
virtual bool read(void);
|
virtual bool read(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// XXX this is being ignored by the compiler #pragma pack(1)
|
// XXX this is being ignored by the compiler #pragma pack(1)
|
||||||
struct diyd_mtk_msg {
|
struct diyd_mtk_msg {
|
||||||
int32_t latitude;
|
int32_t latitude;
|
||||||
int32_t longitude;
|
int32_t longitude;
|
||||||
int32_t altitude;
|
int32_t altitude;
|
||||||
int32_t ground_speed;
|
int32_t ground_speed;
|
||||||
int32_t ground_course;
|
int32_t ground_course;
|
||||||
uint8_t satellites;
|
uint8_t satellites;
|
||||||
uint8_t fix_type;
|
uint8_t fix_type;
|
||||||
uint32_t utc_date;
|
uint32_t utc_date;
|
||||||
uint32_t utc_time;
|
uint32_t utc_time;
|
||||||
uint16_t hdop;
|
uint16_t hdop;
|
||||||
};
|
};
|
||||||
// #pragma pack(pop)
|
// #pragma pack(pop)
|
||||||
enum diyd_mtk_fix_type {
|
enum diyd_mtk_fix_type {
|
||||||
|
@ -50,22 +50,22 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
// Packet checksum accumulators
|
// Packet checksum accumulators
|
||||||
uint8_t _ck_a;
|
uint8_t _ck_a;
|
||||||
uint8_t _ck_b;
|
uint8_t _ck_b;
|
||||||
|
|
||||||
// State machine state
|
// State machine state
|
||||||
uint8_t _step;
|
uint8_t _step;
|
||||||
uint8_t _payload_counter;
|
uint8_t _payload_counter;
|
||||||
|
|
||||||
// Time from UNIX Epoch offset
|
// Time from UNIX Epoch offset
|
||||||
long _time_offset;
|
long _time_offset;
|
||||||
bool _offset_calculated;
|
bool _offset_calculated;
|
||||||
|
|
||||||
// Receive buffer
|
// Receive buffer
|
||||||
union {
|
union {
|
||||||
diyd_mtk_msg msg;
|
diyd_mtk_msg msg;
|
||||||
uint8_t bytes[];
|
uint8_t bytes[];
|
||||||
} _buffer;
|
} _buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // AP_GPS_MTK16_H
|
#endif // AP_GPS_MTK16_H
|
||||||
|
|
Loading…
Reference in New Issue