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-05
Revision:
5:73bfad06b775
Parent:
1:80f098c05d4b
Child:
14:0c0d1bfd94ea

File content as of revision 5:73bfad06b775:

// all the debugging functions
void debugInit(){
	#include "HIDScope.h"
    HIDScope scope(1);
    Ticker sendScope;
    sendscope.attach(&debugProcess, 1/1000);
}

void debugProcess(){
	scope.set(0, motorSetSpeed1);
	scope.set(1, scopevalue);
	scope.set(2, scopevalue);
	scope.set(3, scopevalue);
	scope.set(4, scopevalue);
	scope.set(5, scopevalue);
	scope.send
}