A demonstration of the telemetry library (https://github.com/Overdrivr/Telemetry) to transfert to the desktop various data from the FRDM-TFC shield
Dependencies: BufferedSerial FRDM-TFC-HBRIDGE mbed telemetry
Example of the 'Telemetry' library, a portable communication library for embedded devices.
This code fetches all the data from the Freescale Cup RC-car. It relies on a more advanced shield library that is able to read current feedback from HBridges.
The available data is the following :
- Potentiometer 0
- Potentiometer 1
- 4-bit DIP switch
- Battery level
- current inside HBridge A
- current inside HBridge B
You can use the Pytelemetry Command Line Interface to open plots, visualize the received data, and communicate with the car.
See https://github.com/Overdrivr/pytelemetrycli
Revision 3:ddf88c34c61d, committed 2016-03-09
- Comitter:
- Overdrivr
- Date:
- Wed Mar 09 15:47:31 2016 +0000
- Parent:
- 2:9f07b14821b0
- Commit message:
- update headers include
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
telemetry.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9f07b14821b0 -r ddf88c34c61d main.cpp --- a/main.cpp Mon Feb 22 21:40:44 2016 +0000 +++ b/main.cpp Wed Mar 09 15:47:31 2016 +0000 @@ -1,4 +1,4 @@ -#include "telemetry/Telemetry.h" +#include "telemetry/Telemetry.hpp" #include "FRDM-TFC/TFC.h" /*
diff -r 9f07b14821b0 -r ddf88c34c61d telemetry.lib --- a/telemetry.lib Mon Feb 22 21:40:44 2016 +0000 +++ b/telemetry.lib Wed Mar 09 15:47:31 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Overdrivr/code/telemetry/#8e3de1a314e1 +http://mbed.org/users/Overdrivr/code/telemetry/#f5e1b079bffd