How to get a program to measure and show the temperature on the screen of the controller or V5 brain

So I want to see the motor temperature on either my controller or my V5 brain’s screen because sometimes the motor overheats during competition because I have no idea what the temperature is, so I’m wondering is there a way to show my motor temperature somewhere I can see?

https://api.vexcode.cloud/v5/html/classvex_1_1motor.html#ae536fa5573b78ed376ccde8e1abc793d

Well, the command to get temperature is in the VEXcode API (linked above), temperature units are here.

Hint:
motor.temperature(temperatureUnits::fahrenheit);

Some good forum searches can find plenty of threads about displaying motor temperature or other values. For instance:

5 Likes

thank you so much @trontech569