control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

actuators.h

Committer:
annesteenbeek
Date:
2015-10-14
Revision:
62:6c566e6f9664
Parent:
52:2ac9dee099ce
Child:
73:05cd0e692b74

File content as of revision 62:6c566e6f9664:

#ifndef ACTUATORS_H
#define ACTUATORS_H

#include "PID.h"
#include "mbed.h"
#include "config.h"
#include "encoder.h"


extern bool motorsEnable;

// CCW is false(positive rotation), CW is true (neg rotation)
extern double motor1Pos;
extern double motor2Pos;

extern double motor1SetSpeed;
extern double motor2SetSpeed;

extern double servoPos;
extern double motorCall;

// Set PID values
extern PID motor2PID;

void motorInit();
void motorControl();
void servoControl();
void calibrateMotors();
void writeMotors();

#endif