mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
added GPS types
This commit is contained in:
parent
173c4d9e68
commit
b3dd6abf46
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,9 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
#define LATITUDE_T 21 // Latitude part of GPS coordinate
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
#define LONGITUDE_T 22 // Longitude part of GPS coordinate
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
#define ALTITUDE_T 23 // Altitude part of GPS coordinate
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
@ -119,11 +119,12 @@ void beginFDRS() {
|
|||||||
DBG("Initializing LoRa!");
|
DBG("Initializing LoRa!");
|
||||||
DBG(BAND);
|
DBG(BAND);
|
||||||
DBG(SF);
|
DBG(SF);
|
||||||
#ifndef __AVR__
|
#ifdef ESP32
|
||||||
SPI.begin(SCK, MISO, MOSI, SS);
|
SPI.begin(SCK, MISO, MOSI, SS);
|
||||||
#endif
|
#endif
|
||||||
LoRa.setPins(SS, RST, DIO0);
|
LoRa.setPins(SS, RST, DIO0);
|
||||||
if (!LoRa.begin(FDRS_BAND)) {
|
if (!LoRa.begin(FDRS_BAND)) {
|
||||||
|
DBG("Unable to initialize LoRa!");
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
LoRa.setSpreadingFactor(FDRS_SF);
|
LoRa.setSpreadingFactor(FDRS_SF);
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
#define CURRENT_T 18 // Current
|
#define CURRENT_T 18 // Current
|
||||||
#define CURRENT2_T 19 // Current #2
|
#define CURRENT2_T 19 // Current #2
|
||||||
#define IT_T 20 // Iterations
|
#define IT_T 20 // Iterations
|
||||||
|
#define LATITUDE_T 21 // GPS Latitude
|
||||||
|
#define LONGITUDE_T 22 // GPS Longitude
|
||||||
|
#define ALTITUDE_T 23 // GPS Altitude
|
||||||
|
|
||||||
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE // Should only be changed if implementing multiple FDRS systems.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user