diff options
| author | Keith Packard <keithp@keithp.com> | 2011-08-28 15:40:40 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-08-28 15:40:40 -0700 |
| commit | cff737c290347b61ba16584880c2f4c436b95042 (patch) | |
| tree | 4e0a2994191c9ede9dca12ebc3e652b1fdd05e06 /src/core | |
| parent | 27835686648e14b030f6f7ec1fc0c0fd1c387ea4 (diff) | |
altos: Remove RSSI reporting from telebt
Telebt uses one LED for bluetooth connection and the other for telem
packet reception leaving none for RSSI.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ao_monitor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ao_monitor.c b/src/core/ao_monitor.c index c167b861..aaa6bb8b 100644 --- a/src/core/ao_monitor.c +++ b/src/core/ao_monitor.c @@ -151,7 +151,9 @@ ao_monitor_put(void) ao_gps_print(&recv_orig.telemetry_orig.gps); ao_gps_tracking_print(&recv_orig.telemetry_orig.gps_tracking); putchar('\n'); +#if HAS_RSSI ao_rssi_set(rssi); +#endif } else { printf("CRC INVALID RSSI %3d\n", rssi); } @@ -214,7 +216,9 @@ ao_monitor_put(void) recv_tiny.telemetry_tiny.flight_vel, recv_tiny.telemetry_tiny.flight_pres); #endif +#if HAS_RSSI ao_rssi_set(rssi); +#endif } else { printf("CRC INVALID RSSI %3d\n", rssi); } @@ -228,10 +232,12 @@ ao_monitor_put(void) printf("%02x", byte); } printf("%02x\n", sum); +#if HAS_RSSI if (recv_raw.packet[ao_monitoring + 1] & PKT_APPEND_STATUS_1_CRC_OK) { rssi = ((int16_t) recv_raw.packet[ao_monitoring] >> 1) - 74; ao_rssi_set(rssi); } +#endif break; } ao_usb_flush(); |
