diff options
author | Stefan Rado <px4@sradonia.net> | 2014-01-02 02:11:52 +0100 |
---|---|---|
committer | Stefan Rado <px4@sradonia.net> | 2014-01-02 02:11:52 +0100 |
commit | 1e7e65717a4522de59957d20be2b06ccc7b5a71d (patch) | |
tree | 61165c7d553c72810c748409ad2b505f4892080e /src/drivers/frsky_telemetry/frsky_data.c | |
parent | 8fd909f51911b9ede93b19188ed360231f75de1c (diff) | |
download | px4-firmware-1e7e65717a4522de59957d20be2b06ccc7b5a71d.tar.gz px4-firmware-1e7e65717a4522de59957d20be2b06ccc7b5a71d.tar.bz2 px4-firmware-1e7e65717a4522de59957d20be2b06ccc7b5a71d.zip |
Only send data packets we really support.
Diffstat (limited to 'src/drivers/frsky_telemetry/frsky_data.c')
-rw-r--r-- | src/drivers/frsky_telemetry/frsky_data.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/drivers/frsky_telemetry/frsky_data.c b/src/drivers/frsky_telemetry/frsky_data.c index edbdbf366..9e6d57fac 100644 --- a/src/drivers/frsky_telemetry/frsky_data.c +++ b/src/drivers/frsky_telemetry/frsky_data.c @@ -186,14 +186,9 @@ void frsky_send_frame1(int uart) frsky_send_data(uart, FRSKY_ID_BARO_ALT_AP, frac(raw.baro_alt_meter) * 1000.0f); frsky_send_data(uart, FRSKY_ID_TEMP1, raw.baro_temp_celcius * 10.0f); - frsky_send_data(uart, FRSKY_ID_TEMP2, 0); - - frsky_send_data(uart, FRSKY_ID_VOLTS, 0); /* cell voltage. 4 bits cell number, 12 bits voltage in 0.2V steps, scale 0-4.2V */ - frsky_send_data(uart, FRSKY_ID_CURRENT, battery.current_a); frsky_send_data(uart, FRSKY_ID_VFAS, battery.voltage_v * 10.0f); - - frsky_send_data(uart, FRSKY_ID_RPM, 0); + frsky_send_data(uart, FRSKY_ID_CURRENT, battery.current_a); frsky_send_startstop(uart); } |