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-20
Revision:
78:0cc7c64ba94c
Parent:
76:0aa90e728e4a
Child:
97:0f67952051e5
Child:
98:25528494287d

File content as of revision 78:0cc7c64ba94c:

#ifndef ACTUATORS_H
#define ACTUATORS_H

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


extern bool motorsEnable;
extern bool safetyOn;

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

extern double motor1SetSpeed;
extern double motor2SetSpeed;

// unscaled EMG velocity's
extern double x_velocity;
extern double y_velocity;
extern double z_velocity;

extern double servoPos;
extern double motorCall;

// Set PID values
extern PID motor2PID;

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

#endif