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:
- 4:adc885f4ab75
- Parent:
- 3:a223b0bf8256
- Child:
- 9:aff48e331147
File content as of revision 4:adc885f4ab75:
/*
* 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;
double pfac,ifac,dfac;
double angfac;
int driveForward(double angle, int dist);
void addforward(double dist);
double turn(double power, double degrees);
int moveTo(double xInches, double yInches);
int turntowards(double xInches, double yInches);
};
#endif
