kopia lustrzana https://github.com/lightaprs/LightAPRS-1.0
Update LightAPRS-pico-balloon.ino
rodzic
62cfaf88de
commit
226f7e47a4
|
@ -71,7 +71,7 @@ boolean beaconViaARISS = false; //there are no iGates in some regions (such as N
|
||||||
// GEOFENCE
|
// GEOFENCE
|
||||||
uint32_t GEOFENCE_APRS_frequency = 144800000; //default frequency before geofencing. This variable will be updated based on GPS location.
|
uint32_t GEOFENCE_APRS_frequency = 144800000; //default frequency before geofencing. This variable will be updated based on GPS location.
|
||||||
uint32_t GEOFENCE_no_tx = 0;
|
uint32_t GEOFENCE_no_tx = 0;
|
||||||
|
boolean arissModEnabled = false; //do not change this, temp value.
|
||||||
|
|
||||||
boolean radioSetup = false;
|
boolean radioSetup = false;
|
||||||
boolean GpsFirstFix=false;
|
boolean GpsFirstFix=false;
|
||||||
|
@ -167,7 +167,7 @@ void loop() {
|
||||||
ublox_high_alt_mode_enabled = false; //gps sleep mode resets high altitude mode.
|
ublox_high_alt_mode_enabled = false; //gps sleep mode resets high altitude mode.
|
||||||
GpsFirstFix=true;
|
GpsFirstFix=true;
|
||||||
|
|
||||||
if(autoPathSizeHighAlt && gps.altitude.feet()>3000){
|
if(!arissModEnabled && autoPathSizeHighAlt && gps.altitude.feet()>3000){
|
||||||
//force to use high altitude settings (WIDE2-n)
|
//force to use high altitude settings (WIDE2-n)
|
||||||
APRS_setPathSize(1);
|
APRS_setPathSize(1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -275,7 +275,8 @@ void configureFreqbyLocation() {
|
||||||
APRS_setPath1("ARISS", Wide1);
|
APRS_setPath1("ARISS", Wide1);
|
||||||
APRS_setPath2("WIDE2", Wide2);
|
APRS_setPath2("WIDE2", Wide2);
|
||||||
APRS_setPathSize(2);
|
APRS_setPathSize(2);
|
||||||
configDra818("145.8250");
|
configDra818("145.8250");
|
||||||
|
arissModEnabled = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
GEOFENCE_position(tempLat,tempLong);
|
GEOFENCE_position(tempLat,tempLong);
|
||||||
|
@ -283,7 +284,7 @@ void configureFreqbyLocation() {
|
||||||
char aprsFreq_buff[9];
|
char aprsFreq_buff[9];
|
||||||
dtostrf(dividedFreq, 8, 4, aprsFreq_buff);
|
dtostrf(dividedFreq, 8, 4, aprsFreq_buff);
|
||||||
configDra818(aprsFreq_buff);
|
configDra818(aprsFreq_buff);
|
||||||
|
arissModEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
radioSetup = true;
|
radioSetup = true;
|
||||||
|
|
Ładowanie…
Reference in New Issue