How to pull the pct of battery

Hello. I hope all is well. I am currently making a custom autonomous selector with a bunch of other features. I am currently stuck on the issue of pulling the pct of the battery. My plan is to send this pct value to the remote to be displayed (yes, I know it already displays the battery level but I’m doing a feature with more information). Any help would be greatly appreciated.

To get the battery level, you can use the following built-in method in your code:

Blocks:
image
This can be found in the “Sensing” category

Python:

brain.battery.capacity()

C++:

Brain.Battery.capacity()
2 Likes