diff options
author | Julian Oes <joes@student.ethz.ch> | 2013-02-07 14:48:00 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2013-02-07 14:48:00 -0800 |
commit | a88b9f4eefe8315cb692779dd300400d8052eb44 (patch) | |
tree | 211753642a2618aafe1c31b732b17c5c5dc1b198 /apps/drivers/gps/gps_helper.h | |
parent | d36eb8a3fcce358409a7205bbd75576a447ac7b4 (diff) | |
download | px4-firmware-a88b9f4eefe8315cb692779dd300400d8052eb44.tar.gz px4-firmware-a88b9f4eefe8315cb692779dd300400d8052eb44.tar.bz2 px4-firmware-a88b9f4eefe8315cb692779dd300400d8052eb44.zip |
Restructered the parsing/configuring, MTK working
Diffstat (limited to 'apps/drivers/gps/gps_helper.h')
-rw-r--r-- | apps/drivers/gps/gps_helper.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/drivers/gps/gps_helper.h b/apps/drivers/gps/gps_helper.h index 576692c2a..537ca819c 100644 --- a/apps/drivers/gps/gps_helper.h +++ b/apps/drivers/gps/gps_helper.h @@ -33,17 +33,20 @@ * ****************************************************************************/ -/* @file U-Blox protocol definitions */ +/* @file gps_helper.h */ #ifndef GPS_HELPER_H #define GPS_HELPER_H +#include <uORB/uORB.h> +#include <uORB/topics/vehicle_gps_position.h> + class GPS_Helper { public: - virtual void reset(void) = 0; - virtual void configure(const int &fd, bool &baudrate_changed, unsigned &baudrate) = 0; - virtual void parse(uint8_t, struct vehicle_gps_position_s*, bool &config_needed, bool &pos_updated) = 0; + virtual int configure(const int &fd, unsigned &baud) = 0; + virtual int receive(const int &fd, struct vehicle_gps_position_s &gps_position) = 0; + int set_baudrate(const int &fd, unsigned baud); }; #endif /* GPS_HELPER_H */ |