Psi Swarm robot library version 0.9
Fork of PsiSwarmV8_CPP by
Diff: motors.cpp
- Revision:
- 12:878c6e9d9e60
- Parent:
- 8:6c92789d5f87
--- a/motors.cpp Sun Oct 16 21:06:15 2016 +0000 +++ b/motors.cpp Mon Oct 17 13:09:10 2016 +0000 @@ -169,7 +169,7 @@ int Motors::time_based_turn_degrees(float speed, float degrees, char brake) { if(speed < 0 || speed > 1 || degrees == 0) { - debug("Invalid values to time based turn: speed=%f degrees=$f\n",speed,degrees); + psi.debug("Invalid values to time based turn: speed=%f degrees=$f\n",speed,degrees); return 0; } else { //Check if a current time based action is running - if it is, throw a warning and cancel its timeout @@ -198,7 +198,7 @@ { if(time_based_motor_action == 1) { time_based_action_timeout.detach(); - debug("WARNING: New time-based action called before previous action finished!\n"); + psi.debug("WARNING: New time-based action called before previous action finished!\n"); } else time_based_motor_action = 1; }