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

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

main.cpp

Committer:
annesteenbeek
Date:
2015-10-05
Revision:
3:47c76be6d402
Parent:
1:80f098c05d4b
Child:
5:73bfad06b775

File content as of revision 3:47c76be6d402:

#include "PID.h"
#include "QEI.h"
#include "mbed.h"
#include "encoder.h"
#include "config.h"  // settings and pin configurations


// #define DEBUG // send debug data to serial console

#ifdef DEBUG
    #include "HIDScope.h"
    HIDScope scope(1);
#endif

enablePins();
motorInit(); 

int main()
{
    Timer time; // create timer object
    time.start(); // start the timer
    
    while (true) {
        // checkSwitches();
        // readEMG();
        motorControl();
        // servoControl();

        #ifdef DEBUG
            debugProcess();
        #endif
    }
}