mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
[modules] fix some more modules after conversion to telemetry functions
This commit is contained in:
@@ -137,7 +137,7 @@ static struct i2c_transaction ms45xx_trans;
|
||||
static Butterworth2LowPass ms45xx_filter;
|
||||
|
||||
|
||||
static void ms45xx_downlink(void)
|
||||
static void ms45xx_downlink(struct transport_tx *trans, struct link_device *dev)
|
||||
{
|
||||
pprz_msg_send_AIRSPEED_MS45XX(trans, dev, AC_ID,
|
||||
&ms45xx.diff_pressure,
|
||||
@@ -213,7 +213,7 @@ void ms45xx_i2c_event(void)
|
||||
stateSetAirspeed_f(&ms45xx.airspeed);
|
||||
#endif
|
||||
if (ms45xx.sync_send) {
|
||||
ms45xx_downlink();
|
||||
ms45xx_downlink(&(DefaultChannel).trans_tx, &(DefaultDevice).device);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ float calc_lm35(int16_t raw_temp)
|
||||
return ((float)raw_temp * (3300.0f / 1024.0f) / 10.0f);
|
||||
}
|
||||
|
||||
static void temp_adc_downlink(void)
|
||||
static void temp_adc_downlink(struct transport_tx *trans, struct link_device *dev)
|
||||
{
|
||||
pprz_msg_send_TEMP_ADC(trans, dev, AC_ID, &temp_c1, &temp_c2, &temp_c3);
|
||||
}
|
||||
@@ -157,7 +157,7 @@ void temp_adc_periodic(void)
|
||||
#endif
|
||||
|
||||
if (temp_adc_sync_send) {
|
||||
temp_adc_downlink();
|
||||
temp_adc_downlink(&(DefaultChannel).trans_tx, &(DefaultDevice).device);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user