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-09
- Revision:
- 50:b0cf07ca53cf
- Parent:
- 34:f315b2b38555
- Child:
- 52:2ac9dee099ce
File content as of revision 50:b0cf07ca53cf:
#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; extern float motorCall; // Set PID values extern PID PIDmotor2; void motorInit(); void motorControl(); void servoControl(); void calibrateMotors(); void writeMotors(); #endif