kopia lustrzana https://github.com/helium/longfi-arduino
cleanup
rodzic
29e908c5e4
commit
b285da67b2
|
@ -1,5 +1,10 @@
|
||||||
#include <MicroNMEA.h>
|
#include <MicroNMEA.h>
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
#include <arduino_lmic.h>
|
||||||
|
#include <arduino_lmic_hal_boards.h>
|
||||||
|
#include <arduino_lmic_hal_configuration.h>
|
||||||
|
#include <arduino_lmic_lorawan_compliance.h>
|
||||||
|
#include <arduino_lmic_user_configuration.h>
|
||||||
#include <hal/hal.h>
|
#include <hal/hal.h>
|
||||||
#include <lmic.h>
|
#include <lmic.h>
|
||||||
|
|
||||||
|
@ -65,7 +70,7 @@ void do_send(osjob_t *j);
|
||||||
|
|
||||||
// Schedule TX every this many seconds (might become longer due to duty
|
// Schedule TX every this many seconds (might become longer due to duty
|
||||||
// cycle limitations).
|
// cycle limitations).
|
||||||
const unsigned TX_INTERVAL = 10;
|
const unsigned TX_INTERVAL = 60;
|
||||||
|
|
||||||
// Pin mapping
|
// Pin mapping
|
||||||
//
|
//
|
||||||
|
@ -309,10 +314,9 @@ void readGPS() {
|
||||||
else
|
else
|
||||||
Serial.println("not available");
|
Serial.println("not available");
|
||||||
|
|
||||||
// if (nmea.isValid()) {
|
|
||||||
lpp.addGPS(1, latitude_mdeg / 1000000, longitude_mdeg / 1000000,
|
lpp.addGPS(1, latitude_mdeg / 1000000, longitude_mdeg / 1000000,
|
||||||
alt / 1000);
|
alt / 1000);
|
||||||
//};
|
|
||||||
Serial.print("Speed: ");
|
Serial.print("Speed: ");
|
||||||
Serial.println(nmea.getSpeed() / 1000., 3);
|
Serial.println(nmea.getSpeed() / 1000., 3);
|
||||||
Serial.print("Course: ");
|
Serial.print("Course: ");
|
||||||
|
|
Ładowanie…
Reference in New Issue