projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f231a3
)
altos: Add RSSI blinking to new-style telemetry code
author
Keith Packard
<keithp@keithp.com>
Sun, 28 Aug 2011 22:38:12 +0000
(15:38 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 28 Aug 2011 22:38:12 +0000
(15:38 -0700)
Pull the RSSI data out locally and set the RSSI led blinking when
using the variable-length TELEM output mechanism.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_monitor.c
patch
|
blob
|
history
diff --git
a/src/core/ao_monitor.c
b/src/core/ao_monitor.c
index 6f2d9dbb3d3bac0a626491b3d217bb00d3213c61..c167b861fd8b687842e4c5fd6c09b1ecb71c49f9 100644
(file)
--- a/
src/core/ao_monitor.c
+++ b/
src/core/ao_monitor.c
@@
-228,6
+228,10
@@
ao_monitor_put(void)
printf("%02x", byte);
}
printf("%02x\n", sum);
printf("%02x", byte);
}
printf("%02x\n", sum);
+ 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);
+ }
break;
}
ao_usb_flush();
break;
}
ao_usb_flush();