little test course vs distance1
This commit is contained in:
parent
d74d20074f
commit
e08a3e040c
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
This LORA APRS Tracker will work with very cheep hardware (amazon, ebay or aliexpress):
|
||||
- ESP32 ( ESP32 Dev Module)
|
||||
- Ebyte 22 400M30S (1 Watt (30dB) Lora SPI Module)
|
||||
- Ebyte E22 400M30S (1 Watt (30dB) Lora SPI Module)
|
||||
- GY-GPSNEO6MV2 (NEO6M GPS Module)
|
||||
|
||||
This project uses Enconded APRS GPS packet to extends range by saving bytes (increased battery life, higher chances of good packet reception (increased range), lower probability of packet collisions (more channel capacity) and 1 Watt LoRa Module (over the usual 0.1 Watt in commercial boards like the LILYGO T-Beam V.1).
|
||||
|
|
@ -10,8 +10,6 @@ This project uses Enconded APRS GPS packet to extends range by saving bytes (inc
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
This Repository is based on lots of other Lora APRS Tracker ideas like:
|
||||
|
||||
- https://github.com/lora-aprs/LoRa_APRS_Tracker (the start with LILYGO T-BEAM v.1)
|
||||
|
|
|
|||
|
|
@ -96,6 +96,9 @@ void loop() {
|
|||
static uint32_t txInterval = 60000L;
|
||||
//static int speed_zero_sent = 0;
|
||||
|
||||
|
||||
|
||||
String mensaje_test = "nada";
|
||||
if (!send_update && gps_loc_update) {
|
||||
uint32_t lastTx = millis() - lastTxTime;
|
||||
currentHeading = gps.course.deg();
|
||||
|
|
@ -103,6 +106,7 @@ void loop() {
|
|||
if (lastTx >= txInterval) {
|
||||
if (lastTxDistance > MinimumDistanceTx) {
|
||||
send_update = true;
|
||||
mensaje_test = "Dist: " + String(lastTxDistance) + " Int: " + String(txInterval);
|
||||
}
|
||||
}
|
||||
if (!send_update) {
|
||||
|
|
@ -110,6 +114,7 @@ void loop() {
|
|||
if (lastTx > MinimumTimeDeltaBeacon * 1000) {
|
||||
if (headingDelta > TurnDegrees && lastTxDistance > MinimumDistanceTx) {
|
||||
send_update = true;
|
||||
mensaje_test = "Delta: " + String(headingDelta) + " Dist: " + String(lastTxDistance) + " Int: " + String(txInterval);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -175,7 +180,11 @@ void loop() {
|
|||
}
|
||||
|
||||
if (SendComment) {
|
||||
AprsPacketMsg += APRS_COMMENT;
|
||||
//AprsPacketMsg += APRS_COMMENT;
|
||||
|
||||
AprsPacketMsg += mensaje_test;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Serial.print(F("GPS coordinates: ")); // Only for Serial Monitor
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
#ifndef BEACON_CONFIG_H_
|
||||
#define BEACON_CONFIG_H_
|
||||
|
||||
#define SlowRate 120 // Seg
|
||||
// Settings for Car Tracker (for now)
|
||||
#define SlowRate 300 // Seg (300 = 5min)
|
||||
#define SlowSpeed 10 // Km/h (3 Runner , 5 Bike, 10 Car)
|
||||
#define FastRate 60 // Seg
|
||||
#define FastSpeed 20 // Km/h (20 Runner y Bike, 70 Car)
|
||||
#define FastRate 30 // Seg
|
||||
#define FastSpeed 100 // Km/h (20 Runner y Bike, 100 Car)
|
||||
#define TurnDegrees 20 // Degrees before Forced Beacon Tx (20 Car , 15 Bike/Runner)
|
||||
#define MinimumDistanceTx 30 // Mts (20 Runner, 100 Car/Bike)
|
||||
#define MinimumDistanceTx 100 // Mts (20 Runner, 100 Car/Bike)
|
||||
#define MinimumTimeDeltaBeacon 5 // Seg between Tx
|
||||
|
||||
#define SendAltitude true // "true" adds Altitude to the APRS packet/message, "false" add Course+Speed
|
||||
#define SendComment false // "true" adds comment to the APRS packet/message
|
||||
#define SendComment true // "true" adds comment to the APRS packet/message
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue