diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-05 12:57:21 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-05 12:57:21 +0200 |
commit | 3466006735123bfd27c94538d98af5b79f47d5a0 (patch) | |
tree | 308890bc1dada58261bd2045e664b939029a92da /apps/drivers/gps/gps_helper.h | |
parent | f9c0ff0f203dbd4e6f34ac3275b2dea0bc6708ac (diff) | |
download | px4-firmware-3466006735123bfd27c94538d98af5b79f47d5a0.tar.gz px4-firmware-3466006735123bfd27c94538d98af5b79f47d5a0.tar.bz2 px4-firmware-3466006735123bfd27c94538d98af5b79f47d5a0.zip |
GPS velocity update rate validation for u-blox, WIP
Diffstat (limited to 'apps/drivers/gps/gps_helper.h')
-rw-r--r-- | apps/drivers/gps/gps_helper.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/apps/drivers/gps/gps_helper.h b/apps/drivers/gps/gps_helper.h index f3d3bc40b..7e456a6aa 100644 --- a/apps/drivers/gps/gps_helper.h +++ b/apps/drivers/gps/gps_helper.h @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (C) 2008-2013 PX4 Development Team. All rights reserved. + * Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved. * Author: Thomas Gubler <thomasgubler@student.ethz.ch> * Julian Oes <joes@student.ethz.ch> * @@ -33,7 +33,9 @@ * ****************************************************************************/ -/* @file gps_helper.h */ +/** + * @file gps_helper.h + */ #ifndef GPS_HELPER_H #define GPS_HELPER_H @@ -44,9 +46,18 @@ class GPS_Helper { public: - virtual int configure(unsigned &baud) = 0; + virtual int configure(unsigned &baud) = 0; virtual int receive(unsigned timeout) = 0; - int set_baudrate(const int &fd, unsigned baud); + int set_baudrate(const int &fd, unsigned baud); + float get_position_update_rate(); + float get_velocity_update_rate(); + float reset_update_rates(); + +protected: + uint8_t _rate_count_lat_lon; + uint8_t _rate_count_vel; + + uint64_t _interval_rate_start; }; #endif /* GPS_HELPER_H */ |