kopia lustrzana https://github.com/bristol-seds/pico-tracker
[telemetry] add option to set APRS deviation
rodzic
bba8c7d2f7
commit
f75b383e34
|
@ -49,6 +49,7 @@ int telemetry_start(enum telemetry_t type, int32_t length);
|
|||
int telemetry_start_rsid(rsid_code_t rsid);
|
||||
void telemetry_aprs_set_frequency(int32_t frequency);
|
||||
void telemetry_aprs_set_rf_path(enum si_rf_path path);
|
||||
void telemetry_aprs_set_deviation(uint32_t deviation);
|
||||
float telemetry_si_temperature(void);
|
||||
|
||||
void timer0_tick_init(uint32_t count);
|
||||
|
|
|
@ -120,6 +120,7 @@ float _si_temperature = 128.0;
|
|||
*/
|
||||
int32_t _aprs_frequency = 0;
|
||||
enum si_rf_path _aprs_rf_path = SI_RF_PATH_BYPASS;
|
||||
uint32_t _ax25_deviation = AX25_DEVIATION;
|
||||
|
||||
/**
|
||||
* Returns 1 if we're currently outputting.
|
||||
|
@ -203,6 +204,9 @@ void telemetry_aprs_set_frequency(int32_t frequency) {
|
|||
void telemetry_aprs_set_rf_path(enum si_rf_path path) {
|
||||
_aprs_rf_path = path;
|
||||
}
|
||||
void telemetry_aprs_set_deviation(uint32_t deviation) {
|
||||
_ax25_deviation = deviation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the SI radio temperature at the end of the last transmission.
|
||||
|
@ -327,7 +331,7 @@ void telemetry_tick(void) {
|
|||
/* Frequency config. Recalculate each time */
|
||||
si_trx_get_frequency_configuration(&aprs_fconfig, _aprs_frequency);
|
||||
/* Radio on */
|
||||
si_trx_on(SI_MODEM_MOD_TYPE_2GFSK, &aprs_fconfig, AX25_DEVIATION, APRS_POWER,
|
||||
si_trx_on(SI_MODEM_MOD_TYPE_2GFSK, &aprs_fconfig, _ax25_deviation, APRS_POWER,
|
||||
SI_FILTER_APRS, _aprs_rf_path);
|
||||
radio_on = 1;
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue