12
2) If the robot restarts after a power failure, it will recount the running time.
Python API:
Function: tools.get_unixtime( )
Return value:
● time (float)
8. Remaining power
(1) Description: Obtain the remaining power of the robot, and return an integer between 0 and 100 to indicate the remaining
power percent
(2) Type: Information block
(3) Example: Power percent on Chassis LED
If the current remaining power of the robot is 20% or more, the chassis LED will be solid green. Otherwise, the chassis
LED blinks red.