diff options
author | Kynos <mail01@delago.net> | 2014-06-16 15:35:38 +0200 |
---|---|---|
committer | Kynos <mail01@delago.net> | 2014-06-16 15:35:38 +0200 |
commit | 0ffb123701c2e6124d7c735cdb55c250564d12c6 (patch) | |
tree | f510e7529d4d675db82202b0fbf575f2c0d035bb /src/drivers/gps/ubx.h | |
parent | 243db01a37d5d3adecc2e010ac4d9819cf3d6c37 (diff) | |
download | px4-firmware-0ffb123701c2e6124d7c735cdb55c250564d12c6.tar.gz px4-firmware-0ffb123701c2e6124d7c735cdb55c250564d12c6.tar.bz2 px4-firmware-0ffb123701c2e6124d7c735cdb55c250564d12c6.zip |
Store hash instead of full strings for SW & HW version
Diffstat (limited to 'src/drivers/gps/ubx.h')
-rw-r--r-- | src/drivers/gps/ubx.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/gps/ubx.h b/src/drivers/gps/ubx.h index c8c89dfad..f01b697a3 100644 --- a/src/drivers/gps/ubx.h +++ b/src/drivers/gps/ubx.h @@ -452,6 +452,11 @@ private: */ int wait_for_ack(const uint16_t msg, const unsigned timeout, const bool report); + /** + * Calculate FNV1 hash + */ + uint32_t fnv1_32_str(uint8_t *str, uint32_t hval); + int _fd; struct vehicle_gps_position_s *_gps_position; struct satellite_info_s *_satellite_info; @@ -470,8 +475,7 @@ private: hrt_abstime _disable_cmd_last; uint16_t _ack_waiting_msg; ubx_buf_t _buf; - char _ubx_sw_version[30]; - char _ubx_hw_version[10]; + uint32_t _ubx_version; }; #endif /* UBX_H_ */ |