Product: [Jumping Sumo/Jumping Race/Jumping Night]
Use of libARController: [YES] (Only for ARSDK)
SDK platform: [Unix]
Reproductible with the official app: [YES]
Hi guys, I’ve been playing around with the JumpingSumoSample.c file and tried to replace the spacebar-jump command provided with a specific sequence of commands like go straight, turn left a little, then go straight again.
But after it performs the turn command, the next straight command after that causes it to spin on one wheel. it seems as if the bot performs the straight command for the stipulated sleep+usleep time, but for only one wheel.
Below is a segment of the code i added:
> error = deviceController->jumpingSumo->setPilotingPCMDFlag (deviceController->jumpingSumo, 1);
error = deviceController->jumpingSumo->setPilotingPCMDSpeed (deviceController->jumpingSumo, 50); sleep(1);
error = deviceController->jumpingSumo->setPilotingPCMDFlag (deviceController->jumpingSumo, 0); sleep(1);
error = deviceController->jumpingSumo->setPilotingPCMDFlag (deviceController->jumpingSumo, 1); error = deviceController->jumpingSumo->setPilotingPCMDTurn (deviceController->jumpingSumo, -50); usleep(260000);
error = deviceController->jumpingSumo->setPilotingPCMDFlag (deviceController->jumpingSumo, 0); sleep(1);
error = deviceController->jumpingSumo->setPilotingPCMDFlag (deviceController->jumpingSumo, 1); error = deviceController->jumpingSumo->setPilotingPCMDSpeed (deviceController->jumpingSumo, 50); sleep(1);
so it will go straight,pause, turn left, pause, then go straight again, but at the straight again segment at the bottom it just spins on one wheel.
as can be seen ive tried turning off the flag in between the movement segments.
I’m pretty bad at coding and i realise the above looks pretty messy (still trying to improve T_T).
Any help anyone can provide will be greatly appreciated.