control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
actuators.h
- Committer:
- annesteenbeek
- Date:
- 2015-10-07
- Revision:
- 34:f315b2b38555
- Parent:
- 32:2006977785f5
- Child:
- 50:b0cf07ca53cf
File content as of revision 34:f315b2b38555:
#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 float motor1Pos; extern float motor2Pos; extern float motorSetSpeed1; extern float motorSetSpeed2; extern float servoPos; // Set PID values extern PID PIDmotor2; void motorInit(); void motorControl(); void servoControl(); void calibrateMotors(); void writeMotors(); #endif