PX4 Firmware
PX4 Autopilot Software http://px4.io
|
U-Blox protocol implementation. More...
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <ctime>
#include "ubx.h"
#include "rtcm.h"
Go to the source code of this file.
Macros | |
#define | UBX_CONFIG_TIMEOUT 250 |
#define | UBX_PACKET_TIMEOUT 2 |
#define | DISABLE_MSG_INTERVAL 1000000 |
#define | MIN(X, Y) ((X) < (Y) ? (X) : (Y)) |
#define | SWAP16(X) ((((X) >> 8) & 0x00ff) | (((X) << 8) & 0xff00)) |
#define | FNV1_32_INIT ((uint32_t)0x811c9dc5) |
#define | FNV1_32_PRIME ((uint32_t)0x01000193) |
#define | UBX_TRACE_PARSER(...) {/*GPS_INFO(__VA_ARGS__);*/} /* decoding progress in parse_char() */ |
#define | UBX_TRACE_RXMSG(...) {/*GPS_INFO(__VA_ARGS__);*/} /* Rx msgs in payload_rx_done() */ |
#define | UBX_TRACE_SVINFO(...) {/*GPS_INFO(__VA_ARGS__);*/} /* NAV-SVINFO processing (debug use only, will cause rx buffer overflows) */ |
#define | UBX_WARN(...) {GPS_WARN(__VA_ARGS__);} |
#define | UBX_DEBUG(...) {/*GPS_WARN(__VA_ARGS__);*/} |
U-Blox protocol implementation.
Following u-blox 6/7/8/9 Receiver Description including Prototol Specification.
Following u-blox 6/7/8 Receiver Description including Prototol Specification.
Definition in file ubx.cpp.
#define DISABLE_MSG_INTERVAL 1000000 |
Definition at line 64 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxInit().
#define FNV1_32_INIT ((uint32_t)0x811c9dc5) |
Definition at line 69 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxAddMonVer().
#define FNV1_32_PRIME ((uint32_t)0x01000193) |
Definition at line 70 of file ubx.cpp.
Referenced by GPSDriverUBX::fnv1_32_str().
#define MIN | ( | X, | |
Y | |||
) | ((X) < (Y) ? (X) : (Y)) |
Definition at line 66 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxAddNavSat(), and GPSDriverUBX::payloadRxAddNavSvinfo().
#define SWAP16 | ( | X | ) | ((((X) >> 8) & 0x00ff) | (((X) << 8) & 0xff00)) |
Definition at line 67 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxInit(), and GPSDriverUBX::waitForAck().
#define UBX_CONFIG_TIMEOUT 250 |
Definition at line 62 of file ubx.cpp.
Referenced by GPSDriverUBX::activateRTCMOutput(), GPSDriverUBX::configure(), GPSDriverUBX::configureDevice(), GPSDriverUBX::configureDevicePreV27(), GPSDriverUBX::configureMessageRateAndAck(), GPSDriverUBX::restartSurveyIn(), and GPSDriverUBX::restartSurveyInPreV27().
#define UBX_DEBUG | ( | ... | ) | {/*GPS_WARN(__VA_ARGS__);*/} |
Definition at line 80 of file ubx.cpp.
Referenced by GPSDriverUBX::configure(), GPSDriverUBX::configureDevicePreV27(), GPSDriverUBX::parseChar(), GPSDriverUBX::payloadRxAddMonVer(), GPSDriverUBX::payloadRxDone(), GPSDriverUBX::payloadRxInit(), GPSDriverUBX::receive(), GPSDriverUBX::restartSurveyIn(), GPSDriverUBX::restartSurveyInPreV27(), and GPSDriverUBX::waitForAck().
#define UBX_PACKET_TIMEOUT 2 |
Definition at line 63 of file ubx.cpp.
Referenced by GPSDriverUBX::receive().
#define UBX_TRACE_PARSER | ( | ... | ) | {/*GPS_INFO(__VA_ARGS__);*/} /* decoding progress in parse_char() */ |
Definition at line 74 of file ubx.cpp.
Referenced by GPSDriverUBX::parseChar().
#define UBX_TRACE_RXMSG | ( | ... | ) | {/*GPS_INFO(__VA_ARGS__);*/} /* Rx msgs in payload_rx_done() */ |
Definition at line 75 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxDone().
#define UBX_TRACE_SVINFO | ( | ... | ) | {/*GPS_INFO(__VA_ARGS__);*/} /* NAV-SVINFO processing (debug use only, will cause rx buffer overflows) */ |
Definition at line 76 of file ubx.cpp.
Referenced by GPSDriverUBX::payloadRxAddNavSat(), and GPSDriverUBX::payloadRxAddNavSvinfo().
#define UBX_WARN | ( | ... | ) | {GPS_WARN(__VA_ARGS__);} |
Definition at line 79 of file ubx.cpp.
Referenced by GPSDriverUBX::cfgValset(), GPSDriverUBX::configureMessageRate(), GPSDriverUBX::payloadRxAddMonVer(), GPSDriverUBX::payloadRxDone(), GPSDriverUBX::payloadRxInit(), GPSDriverUBX::receive(), and GPSDriverUBX::restartSurveyInPreV27().