kopia lustrzana https://github.com/bristol-seds/pico-tracker
[ariss] disable ariss, always use bypass path for other aprs
first hardware build won't include amplifiermain-solar-only
rodzic
f80788b26a
commit
917a332ce3
|
@ -241,7 +241,7 @@
|
||||||
* ARISS APRS
|
* ARISS APRS
|
||||||
* Geofence used is only "no aprs"
|
* Geofence used is only "no aprs"
|
||||||
*/
|
*/
|
||||||
#define ARISS_ENABLE 1
|
#define ARISS_ENABLE 0
|
||||||
#define ARISS_USE_PREDICT 0
|
#define ARISS_USE_PREDICT 0
|
||||||
#define ARISS_USE_GEOFENCE 0
|
#define ARISS_USE_GEOFENCE 0
|
||||||
#define ARISS_FREQUENCY 145825000
|
#define ARISS_FREQUENCY 145825000
|
||||||
|
|
|
@ -202,13 +202,13 @@ void aprs_telemetry(struct tracker_datapoint* dp, uint32_t n)
|
||||||
telemetry_aprs_set_frequency(location_aprs_frequency());
|
telemetry_aprs_set_frequency(location_aprs_frequency());
|
||||||
|
|
||||||
/* Set rf path */
|
/* Set rf path */
|
||||||
if ((get_battery_use_state() == BATTERY_GOOD) && /* battery good, */
|
// if ((get_battery_use_state() == BATTERY_GOOD) && /* battery good, */
|
||||||
(get_battery_charge_state() != BATTERY_DISCHARGING) && /* plenty of power and */
|
// (get_battery_charge_state() != BATTERY_DISCHARGING) && /* plenty of power and */
|
||||||
((n % 4) == 0)) { /* one-in-four times */
|
// ((n % 4) == 0)) { /* one-in-four times */
|
||||||
telemetry_aprs_set_rf_path(SI_RF_PATH_AMPLIFIER); /* try the amplified path */
|
// telemetry_aprs_set_rf_path(SI_RF_PATH_AMPLIFIER); /* try the amplified path */
|
||||||
} else {
|
// } else {
|
||||||
telemetry_aprs_set_rf_path(SI_RF_PATH_BYPASS);
|
telemetry_aprs_set_rf_path(SI_RF_PATH_BYPASS);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/* Transmit packet and wait */
|
/* Transmit packet and wait */
|
||||||
telemetry_start(TELEMETRY_APRS, 0xFFFF);
|
telemetry_start(TELEMETRY_APRS, 0xFFFF);
|
||||||
|
|
Ładowanie…
Reference in New Issue