added GPS types

This commit is contained in:
Timm Bogner 2022-07-01 16:47:14 -05:00
parent 173c4d9e68
commit b3dd6abf46
12 changed files with 269 additions and 235 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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);

View File

@ -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.

View File

@ -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.

View File

@ -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.