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 19:04:09 2015 +0000
Revision:
34:f315b2b38555
Parent:
32:2006977785f5
Child:
50:b0cf07ca53cf
small typo and bug fixes

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 34:f315b2b38555 10 extern bool motorsEnable;
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 32:2006977785f5 19 extern float servoPos;
annesteenbeek 25:874675516927 20
annesteenbeek 25:874675516927 21 // Set PID values
annesteenbeek 30:a20f16bf8dda 22 extern PID PIDmotor2;
annesteenbeek 30:a20f16bf8dda 23
annesteenbeek 13:4837b36b9a68 24 void motorInit();
annesteenbeek 13:4837b36b9a68 25 void motorControl();
annesteenbeek 13:4837b36b9a68 26 void servoControl();
annesteenbeek 32:2006977785f5 27 void calibrateMotors();
annesteenbeek 34:f315b2b38555 28 void writeMotors();
annesteenbeek 25:874675516927 29
annesteenbeek 13:4837b36b9a68 30 #endif