mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-12 15:50:36 -08:00
Add MicroNMEA to libs
This commit is contained in:
7
.github/workflows/build_push.yml
vendored
7
.github/workflows/build_push.yml
vendored
@@ -44,6 +44,13 @@ jobs:
|
||||
ref: master
|
||||
path: CustomAsyncTCP
|
||||
|
||||
- name: Install MicroNMEA
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: stevemarple/MicroNMEA
|
||||
ref: master
|
||||
path: CustomMicroNMEA
|
||||
|
||||
- name: Install ESPAsyncWebServer
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
|
||||
@@ -8,7 +8,7 @@ HardwareSerial Serial2(2);
|
||||
|
||||
void GpsInterface::begin() {
|
||||
|
||||
Serial2.begin(9600, SERIAL_8N1, 4, 13);
|
||||
Serial2.begin(9600, SERIAL_8N1, GPS_TX, GPS_RX);
|
||||
|
||||
MicroNMEA::sendSentence(Serial2, "$PSTMSETPAR,1201,0x00000042");
|
||||
MicroNMEA::sendSentence(Serial2, "$PSTMSAVEPAR");
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <MicroNMEA.h>
|
||||
|
||||
#include "configs.h"
|
||||
|
||||
class GpsInterface {
|
||||
public:
|
||||
void begin();
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
//// BOARD TARGETS
|
||||
//#define MARAUDER_M5STICKC
|
||||
//#define MARAUDER_MINI
|
||||
#define MARAUDER_V4
|
||||
//#define MARAUDER_V6
|
||||
//#define MARAUDER_V4
|
||||
#define MARAUDER_V6
|
||||
//#define MARAUDER_KIT
|
||||
//#define GENERIC_ESP32
|
||||
//#define MARAUDER_FLIPPER
|
||||
@@ -756,6 +756,16 @@
|
||||
#endif
|
||||
//// END EVIL PORTAL STUFF
|
||||
|
||||
////
|
||||
//// GPS STUFF
|
||||
#ifdef HAS_GPS
|
||||
#ifdef MARAUDER_V6
|
||||
#define GPS_TX 4
|
||||
#define GPS_RX 13
|
||||
#elif defined(MARAUDER_V4)
|
||||
#define GPS_TX 4
|
||||
#define GPS_RX 13
|
||||
#endif
|
||||
#endif
|
||||
//// END GPS STUFF
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user