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

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Committer:
annesteenbeek
Date:
Wed Oct 07 15:09:52 2015 +0200
Revision:
31:8fbee6c92753
Parent:
30:a20f16bf8dda
Child:
32:2006977785f5
restructured motor control and changed input/output limits

Who changed what in which revision?

UserRevisionLine numberNew contents of line
annesteenbeek 13:4837b36b9a68 1 #ifndef ACTUATORS_H
annesteenbeek 13:4837b36b9a68 2 #define ACTUATORS_H
annesteenbeek 13:4837b36b9a68 3
annesteenbeek 25:874675516927 4 #include "PID.h"
annesteenbeek 25:874675516927 5 #include "mbed.h"
annesteenbeek 25:874675516927 6 #include "config.h"
annesteenbeek 25:874675516927 7 #include "encoder.h"
annesteenbeek 25:874675516927 8
annesteenbeek 25:874675516927 9
annesteenbeek 25:874675516927 10 extern bool motorEnable;
annesteenbeek 25:874675516927 11
annesteenbeek 25:874675516927 12 // CCW is false(positive rotation), CW is true (neg rotation)
annesteenbeek 25:874675516927 13 extern float motor1Pos;
annesteenbeek 25:874675516927 14 extern float motor2Pos;
annesteenbeek 25:874675516927 15
annesteenbeek 25:874675516927 16 extern float motorSetSpeed1;
annesteenbeek 25:874675516927 17 extern float motorSetSpeed2;
annesteenbeek 25:874675516927 18
annesteenbeek 25:874675516927 19
annesteenbeek 25:874675516927 20 // Set PID values
annesteenbeek 30:a20f16bf8dda 21 extern PID PIDmotor2;
annesteenbeek 30:a20f16bf8dda 22
annesteenbeek 13:4837b36b9a68 23 void motorInit();
annesteenbeek 13:4837b36b9a68 24 void motorControl();
annesteenbeek 13:4837b36b9a68 25 void servoControl();
annesteenbeek 13:4837b36b9a68 26
annesteenbeek 25:874675516927 27
annesteenbeek 13:4837b36b9a68 28 #endif