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

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

debug.cpp

Committer:
annesteenbeek
Date:
2015-10-08
Revision:
43:4c7659ae3219
Parent:
42:d36d216457c4
Child:
47:e493567999d7

File content as of revision 43:4c7659ae3219:

#include "mbed.h"
#include "debug.h"
#include "HIDScope.h"
#include "buttons.h"
#include "actuators.h"
#include "config.h"
// all the debugging functions

HIDScope scope(4);

void debugProcess(){
    scope.set(0, motorsEnable);
	scope.set(1, 300*(pot2.read()-pot1.read()));
	scope.set(2, motorSetSpeed2);
	scope.set(3, motorPWM2);
    scope.send();
}