![](/media/cache/profiles/profile_pic_for_github_less_than_1MB.jpg.50x50_q85.jpg)
This is example code that can get you started with building your own IR vision robot that communicates over LoRa
Dependencies: Adafruit-MotorShield Adafruit-PWM-Servo-Driver Adafruit_GFX BufferedSerial MAX17055_EZconfig NEO-6m-GPS SX1276GenericLib USBDeviceHT max32630fthr max77650_charger_sample
Fork of MAX326xxFTHR_LoRa_Example_test by
Diff: utils.cpp
- Revision:
- 19:9f035b9e65ec
- Parent:
- 17:98f2528e8399
diff -r d5527ce82e6b -r 9f035b9e65ec utils.cpp --- a/utils.cpp Mon Mar 12 15:00:02 2018 +0000 +++ b/utils.cpp Fri Jun 01 22:07:08 2018 +0000 @@ -4,8 +4,12 @@ */ #include "main.h" +#define BAUD_RATE 115200 + + time_t cvt_date(char const *date, char const *time); + BufferedSerial *ser; #ifdef FEATURE_USBSERIAL USBSerialBuffered *usb; @@ -45,7 +49,7 @@ { #endif ser = new BufferedSerial(USBTX, USBRX); - ser->baud(230400); + ser->baud(BAUD_RATE); ser->format(8); } time_t t = cvt_date(__DATE__, __TIME__);