uncrustify libraries/AP_GPS/AP_GPS_MTK.h

This commit is contained in:
uncrustify 2012-08-16 23:19:44 -07:00 committed by Pat Hickey
parent bcd77b4cca
commit ceed417538

View File

@ -21,20 +21,20 @@
class AP_GPS_MTK : public GPS { class AP_GPS_MTK : public GPS {
public: public:
AP_GPS_MTK(Stream *s); AP_GPS_MTK(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_time; uint32_t utc_time;
}; };
// #pragma pack(pop) // #pragma pack(pop)
enum diyd_mtk_fix_type { enum diyd_mtk_fix_type {
@ -53,21 +53,21 @@ 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;
// Receive buffer // Receive buffer
union { union {
diyd_mtk_msg msg; diyd_mtk_msg msg;
uint8_t bytes[]; uint8_t bytes[];
} _buffer; } _buffer;
// Buffer parse & GPS state update // Buffer parse & GPS state update
void _parse_gps(); void _parse_gps();
}; };
#endif // AP_GPS_MTK_H #endif // AP_GPS_MTK_H