V5 Motor Temp in Percent?

Here’s how our code does it: (EDIT: this is for printing to the brain)
Brain.Screen.printAt(2, 40 ,"Motor Temp %f " , Motor.temperature(percentUnits: :pct));

First number is x position on the screen, second is y, %f is placeholder that allows the second number to print.

Edit: just realized you said controller, my bad. Here is how you would print to the controller display. Note that the controller only has a maximum of 40 ms (iirc) update rate on the screen.

Controller1.Screen.print(“Motor Temp %f " , Motor.temperature(percentUnits: :pct))

I’m not exactly sure if you will need to or not, because I haven’t played much with it, but you may need to clear the screen (Controller1.Screen.clearScreen();). I’m assuming you will since printAt isn’t listed as a command on the API reference.

2 Likes