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
Diff: Telemetry/Telemetry.h
- Revision:
- 18:c2f3df4ef5fe
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Telemetry/Telemetry.h Thu Nov 29 17:21:37 2018 +0000 @@ -0,0 +1,46 @@ +/* + * Telemetry.h + * + * Created on: May 6, 2014 + * Author: mes + */ + +#ifndef TELEMETRY_H_ +#define TELEMETRY_H_ + +#include "mbed.h" +#include "SystemState.h" +#include "CartPosition.h" + +class Telemetry { +public: + + /** Create a new telemetry object + * + * @param uart is the Serial object used to send data + */ + Telemetry(Serial &uart); + + /** Set baud rate for the serial connection + * + * @param baud is the integer baud rate + */ + void baud(int baud); + + /** Send waypoints to the GCS + * + * @param wpt is the array of CartPosition waypoints + */ + void sendPacket(SystemState *s); + + /** Send waypoints to the GCS + * + * @param wpt is the array of CartPosition waypoints + */ + void sendPacket(CartPosition wpt[], int wptCount); + +private: + Serial *_uart; +}; + +#endif /* TELEMETRY_H_ */