Robot#
Introduction#
Robot methods allow you to check important details about the VEX AIM Coding Robot, including its name and battery percentage.
Below is a list of available methods:
get_battery_level – Returns the robot’s current battery percentage.
get_name – Returns the robot’s set name as a string.
get_battery_level#
get_battery_level
returns the robot’s battery level as a percentage. This returns a number from 0 to 100.
Usage:robot.get_battery_level()
Parameters |
Description |
---|---|
This method has no parameters. |
# Display the robot's current battery
robot.screen.print(robot.get_battery_level())
get_name#
get_name
returns the robot’s set name as a string.
Usage:robot.get_name()
Parameters |
Description |
---|---|
This method has no parameters. |
# Display the robot's set name
robot.screen.print(robot.get_name())