Demo functions

Builtin demos

The function func.demo(demoId, duration) gives access to builtin demos.

This implementation allows to set a demo timeout. If duration is not 0, the demo is stoped after given time of execution. If duration is 0, the demo will run indefinitely.

Please note that launching a demo set the robot in Passive mode, you may want to set it back to Full on demo completion.

Simple demos

The extra function func.blinkingLeds (factor, loops) plays a short demo using robot leds.

The factor change the demo cycle duration into 1/factor second, and the demo runs for loops cycles.