![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
Code for autonomous rover for Sparkfun AVC. DataBus won 3rd in 2012 and the same code was used on Troubled Child, a 1986 Jeep Grand Wagoneer to win 1st in 2014.
Dependencies: mbed Watchdog SDFileSystem DigoleSerialDisp
Telemetry/Telemetry.h@25:bb5356402687, 2018-11-30 (annotated)
- Committer:
- shimniok
- Date:
- Fri Nov 30 16:11:53 2018 +0000
- Revision:
- 25:bb5356402687
- Parent:
- 18:c2f3df4ef5fe
Initial publish of revised version.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shimniok | 18:c2f3df4ef5fe | 1 | /* |
shimniok | 18:c2f3df4ef5fe | 2 | * Telemetry.h |
shimniok | 18:c2f3df4ef5fe | 3 | * |
shimniok | 18:c2f3df4ef5fe | 4 | * Created on: May 6, 2014 |
shimniok | 18:c2f3df4ef5fe | 5 | * Author: mes |
shimniok | 18:c2f3df4ef5fe | 6 | */ |
shimniok | 18:c2f3df4ef5fe | 7 | |
shimniok | 18:c2f3df4ef5fe | 8 | #ifndef TELEMETRY_H_ |
shimniok | 18:c2f3df4ef5fe | 9 | #define TELEMETRY_H_ |
shimniok | 18:c2f3df4ef5fe | 10 | |
shimniok | 18:c2f3df4ef5fe | 11 | #include "mbed.h" |
shimniok | 18:c2f3df4ef5fe | 12 | #include "SystemState.h" |
shimniok | 18:c2f3df4ef5fe | 13 | #include "CartPosition.h" |
shimniok | 18:c2f3df4ef5fe | 14 | |
shimniok | 18:c2f3df4ef5fe | 15 | class Telemetry { |
shimniok | 18:c2f3df4ef5fe | 16 | public: |
shimniok | 18:c2f3df4ef5fe | 17 | |
shimniok | 18:c2f3df4ef5fe | 18 | /** Create a new telemetry object |
shimniok | 18:c2f3df4ef5fe | 19 | * |
shimniok | 18:c2f3df4ef5fe | 20 | * @param uart is the Serial object used to send data |
shimniok | 18:c2f3df4ef5fe | 21 | */ |
shimniok | 18:c2f3df4ef5fe | 22 | Telemetry(Serial &uart); |
shimniok | 18:c2f3df4ef5fe | 23 | |
shimniok | 18:c2f3df4ef5fe | 24 | /** Set baud rate for the serial connection |
shimniok | 18:c2f3df4ef5fe | 25 | * |
shimniok | 18:c2f3df4ef5fe | 26 | * @param baud is the integer baud rate |
shimniok | 18:c2f3df4ef5fe | 27 | */ |
shimniok | 18:c2f3df4ef5fe | 28 | void baud(int baud); |
shimniok | 18:c2f3df4ef5fe | 29 | |
shimniok | 18:c2f3df4ef5fe | 30 | /** Send waypoints to the GCS |
shimniok | 18:c2f3df4ef5fe | 31 | * |
shimniok | 18:c2f3df4ef5fe | 32 | * @param wpt is the array of CartPosition waypoints |
shimniok | 18:c2f3df4ef5fe | 33 | */ |
shimniok | 18:c2f3df4ef5fe | 34 | void sendPacket(SystemState *s); |
shimniok | 18:c2f3df4ef5fe | 35 | |
shimniok | 18:c2f3df4ef5fe | 36 | /** Send waypoints to the GCS |
shimniok | 18:c2f3df4ef5fe | 37 | * |
shimniok | 18:c2f3df4ef5fe | 38 | * @param wpt is the array of CartPosition waypoints |
shimniok | 18:c2f3df4ef5fe | 39 | */ |
shimniok | 18:c2f3df4ef5fe | 40 | void sendPacket(CartPosition wpt[], int wptCount); |
shimniok | 18:c2f3df4ef5fe | 41 | |
shimniok | 18:c2f3df4ef5fe | 42 | private: |
shimniok | 18:c2f3df4ef5fe | 43 | Serial *_uart; |
shimniok | 18:c2f3df4ef5fe | 44 | }; |
shimniok | 18:c2f3df4ef5fe | 45 | |
shimniok | 18:c2f3df4ef5fe | 46 | #endif /* TELEMETRY_H_ */ |