aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB/topics/satellite_info.h
diff options
context:
space:
mode:
authorKynos <mail01@delago.net>2014-06-08 14:05:35 +0200
committerKynos <mail01@delago.net>2014-06-08 14:05:35 +0200
commit9f754e0e9a2e2ad75a3fe5a15690cf542ce08e8a (patch)
tree3a67a6b2cf6b82304d01156cd7d9f6699e314ea3 /src/modules/uORB/topics/satellite_info.h
parent9bad828bc0033c7017978de2321d3a8698c0afc6 (diff)
downloadpx4-firmware-9f754e0e9a2e2ad75a3fe5a15690cf542ce08e8a.tar.gz
px4-firmware-9f754e0e9a2e2ad75a3fe5a15690cf542ce08e8a.tar.bz2
px4-firmware-9f754e0e9a2e2ad75a3fe5a15690cf542ce08e8a.zip
U-blox driver rework, step 3
More sat info isolation Flush input after changing baudrate to allow driver restart w/o GNSS module restart
Diffstat (limited to 'src/modules/uORB/topics/satellite_info.h')
-rw-r--r--src/modules/uORB/topics/satellite_info.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/modules/uORB/topics/satellite_info.h b/src/modules/uORB/topics/satellite_info.h
index 5f799eda4..37c2faa96 100644
--- a/src/modules/uORB/topics/satellite_info.h
+++ b/src/modules/uORB/topics/satellite_info.h
@@ -53,14 +53,17 @@
/**
* GNSS Satellite Info.
*/
+
+#define SAT_INFO_MAX_SATELLITES 20
+
struct satellite_info_s {
- uint64_t timestamp; /**< Timestamp of satellite information */
- uint8_t count; /**< Number of satellites in satellite_...[] arrays */
- uint8_t svid[20]; /**< Space vehicle ID [1..255], see scheme below */
- uint8_t used[20]; /**< 0: Satellite not used, 1: used for navigation */
- uint8_t elevation[20]; /**< Elevation (0: right on top of receiver, 90: on the horizon) of satellite */
- uint8_t azimuth[20]; /**< Direction of satellite, 0: 0 deg, 255: 360 deg. */
- uint8_t snr[20]; /**< dBHz, Signal to noise ratio of satellite C/N0, range 0..99, zero when not tracking this satellite. */
+ uint64_t timestamp; /**< Timestamp of satellite info */
+ uint8_t count; /**< Number of satellites in satellite info */
+ uint8_t svid[SAT_INFO_MAX_SATELLITES]; /**< Space vehicle ID [1..255], see scheme below */
+ uint8_t used[SAT_INFO_MAX_SATELLITES]; /**< 0: Satellite not used, 1: used for navigation */
+ uint8_t elevation[SAT_INFO_MAX_SATELLITES]; /**< Elevation (0: right on top of receiver, 90: on the horizon) of satellite */
+ uint8_t azimuth[SAT_INFO_MAX_SATELLITES]; /**< Direction of satellite, 0: 0 deg, 255: 360 deg. */
+ uint8_t snr[SAT_INFO_MAX_SATELLITES]; /**< dBHz, Signal to noise ratio of satellite C/N0, range 0..99, zero when not tracking this satellite. */
};
/**