Luka Danilovic
/
PROJ515_GPS
GPS NMEA through NavSatFix
Diff: PROJ515.hpp
- Revision:
- 4:df54ebe69b38
- Parent:
- 3:30c3f20c2387
- Child:
- 5:a201e5377e90
diff -r 30c3f20c2387 -r df54ebe69b38 PROJ515.hpp --- a/PROJ515.hpp Fri Mar 01 11:48:05 2019 +0000 +++ b/PROJ515.hpp Fri Mar 01 12:57:15 2019 +0000 @@ -4,7 +4,6 @@ /* Libraries */ #include "mbed.h" // Mbed RTOS -//#include "USBSerial.h" // Serial over second USB #include "TinyGPSPlus.h" // GPS Module Library #include "ros.h" // ROS Library #include "nav_msgs/Odometry.h" // ROS Navigation Messages component @@ -12,6 +11,8 @@ #include "std_msgs/Char.h" // ROS Standard Messages component /* Definitions */ +#define LEDS_OFF 0x00 // LED bus all off +#define LEDS_ON 0x03 // LED bus all on #define GPS_TX PC_10 // GPS Transmit Pin #define GPS_RX PC_11 // GPS Recieve Pin #define USB_TX PC_12 // USB Transmit Pin @@ -25,7 +26,7 @@ #define CVY 0x01 // Covariance value for X from the datasheet #define CVZ 0x01 // Covariance value for X from the datasheet #define ONE 0x01 // Hard coded covariance of 1 -#define PRINT_DATA 0x01 +#define PRINT_DATA 0x01 // Thread communication event to print data /* Declarations */ extern char gps_c; // GPS stream character - Defined in PROJ515.cpp