Hello. We are currently trying to make the value of the battery display on the screen of the remote. We are trying to do a system where is clears the screen and displays the battery level of the remote and robot. Then the remainder of the screen will display what modes we are in (climb mode, full chassis speed, etc.). We know how to display the settings on the remote, but we don’t know how to display the battery levels on the screen. If anyone knows how to display the percentage of both the remote and robot battery, that will help a lot. Thank you and have a good rest of your day.
You can get the brain battery level with vex::brain::battery::capacity
.
Looking at the API page for vex::controller
, it does not appear that VEXcode provides a function for getting the controller battery level.
See this page for more info about showing text on the controller screen.
7 Likes