Question for Laureatus

Is there any way I can run a sequence just once using the new firmware commands…

What I’m trying to achieve is as follows…

I have written some short simple sequences and stored them in the EEPROM. I have an Atmega128 that is processing gyros and deciding what to do to try and retain balance.

It is adjusting the incoming streams from SEQ to allow the bot to try and stay upright.

If the degree of movement becomes too high or it has fallen over then I want to run a stored sequence to stand up again or step backwards etc.

I send the PL

S command for the relevant sequence but I have to calculate how much time it will take to complete the sequence and send PL

to stop the sequence from looping.

Is there any way I can just run it once and stop automatically.

BTW, because the bot has now lost its place in the sequence it was trying to run before it fell over(whatever), I make the bot ignore any further commands from SEQ until the handler restarts the sequence

no other way for now,
just a tip, add a 1 second step with no move (same positions as previous step) to end the sequence, so you have now 1 second to stop the player, preventing the player to loop too quickly or to stop it prematurely.

thanks for the prompt reply. I was considering adding the home position to the end of the sequence but as you say, it needs the time gap to allow for variations.

Thanx again

Works perfectly, each time he gets knocked over it just gets back up again…

Rather annoying when you forget and switch it on lying down…