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

Committer:
shimniok
Date:
2018-11-30
Revision:
25:bb5356402687
Parent:
18:c2f3df4ef5fe

File content as of revision 25:bb5356402687:

/*
 * 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_ */