Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of IEEE_14_Freescale by
robot.h
- Committer:
- soonerbot
- Date:
- 2013-11-17
- Revision:
- 1:c28fac16a109
- Child:
- 3:a223b0bf8256
File content as of revision 1:c28fac16a109:
/*
* File: lowPlan.h
* Author: Shawn Swatek
* Originated: Spring 2013
* Revised: 3/29/13
*/
#ifndef __ROBOT__
#define __ROBOT__
#include "mbed.h"
#include "dbgprint.h"
#include "gyroReader.h"
#include "remoteEnc.h"
#include "remoteMotor.h"
class robot{
public:
SPI spi;
remoteEnc bigenc;
//gyroReader gyro;
remoteMotor right;
remoteMotor left;
robot();
double x,y,rot;
int driveForward(double power, int dist);
int addforward(double dist);
double turn(double power, double degrees);
int moveTo(double xInches, double yInches);
int turntowards(double xInches, double yInches);
};
#endif
