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-07
Revision:
31:8fbee6c92753
Parent:
30:a20f16bf8dda
Child:
32:2006977785f5

File content as of revision 31:8fbee6c92753:

#ifndef ACTUATORS_H
#define ACTUATORS_H

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


extern bool motorEnable;

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

extern float motorSetSpeed1;
extern float motorSetSpeed2;


// Set PID values
extern PID PIDmotor2;

void motorInit();
void motorControl();
void servoControl();


#endif