Sooner Competitive Robotics / Mbed 2 deprecated IEEE_14_Freescale

Dependencies:   mbed

Fork of IEEE_14_Freescale by IEEE 2014 Mbed

robot.h

Committer:
sswatek
Date:
2014-04-01
Revision:
44:4b933e7409e7
Parent:
43:f7ef0f5f980c
Child:
48:519deb1d4dff

File content as of revision 44:4b933e7409e7:

/*
*   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"
#include "absMotors.h"
#include "hcsr04.h"
#include "servo.h"
#include "droidBT.h"
#include "absMotorControl.h"

class robot{
private:
    Timer stepTimer;
    int cameraMode;
public:
    SPI spi;
    remoteEnc bigenc;
    gyroReader gyro;
    //remoteMotor right;
    //remoteMotor left;
    absMotors motors;
    hcsr04 pingLeft;
    hcsr04 pingRight;
    droidBT BTLink;
    absMotorControl cont;
    robot();
    double x,y,rot;
    int circleX,circleY,rectX,rectY,rectRot,triX,triY,triRot;
    int flameLocation;
    int absDriveForward(double angle, int dist);
    int smoothMove(int distance, int rotate, int maxSpeed);
    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);
    int switchCameraMode(int mode);
    int shapeCheck();
    int pollForShapes();
    int rigCheck();
    int pollForRigs();
    int nearRigCheck();
    int alignWithRig();
};

#endif