mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
2c6e096a3b
git-svn-id: https://arducopter.googlecode.com/svn/trunk@286 f9c3cf11-9bcb-44bc-f272-b75c42450872
35 lines
639 B
C++
35 lines
639 B
C++
#ifndef GPS_UBLOX_h
|
|
#define GPS_UBLOX_h
|
|
|
|
#include <AP_GPS.h>
|
|
#define MAXPAYLOAD 60
|
|
|
|
class AP_GPS_UBLOX : public AP_GPS
|
|
{
|
|
public:
|
|
// Methods
|
|
AP_GPS_UBLOX();
|
|
void init();
|
|
void update();
|
|
|
|
private:
|
|
// Internal variables
|
|
uint8_t ck_a; // Packet checksum
|
|
uint8_t ck_b;
|
|
uint8_t GPS_ck_a;
|
|
uint8_t GPS_ck_b;
|
|
|
|
uint8_t step;
|
|
uint8_t msg_class;
|
|
uint8_t id;
|
|
uint8_t payload_length_hi;
|
|
uint8_t payload_length_lo;
|
|
uint8_t payload_counter;
|
|
uint8_t buffer[MAXPAYLOAD];
|
|
long ecefVZ;
|
|
void parse_gps();
|
|
void checksum(unsigned char data);
|
|
long join_4_bytes(unsigned char Buffer[]);
|
|
};
|
|
|
|
#endif |