Asked — Edited

Power And Temperature

I am using scripting to get power and temperature for 2 ezb's. I have noticed that even if I disconnect the 2nd EZB, my script still shows power and temp for it even though it is no longer connected. I think there may be a bug in Ez Robot. Here is my script.

$cputemp1 = 0 $cputemp2 = 0 $cpupower1 = 0 $cpupower2 = 0 $cputemp1 = ((GetCpuTemp(0) * 9/5) + 32) $cputemp2 = ((GetCpuTemp(1) * 9/5) + 32) $cpupower1 = getvoltage(0) $cpupower2 = getvoltage(1) $allinfo = "CPU1 = " + $cpupower1 + " " + $cputemp1 + " " + " CPU2 = " + $cpupower2 + " " + $cputemp2 print($allinfo)

Any help is appreciated.


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

#1  

I may be wrong but but I think the temp and power reading only works on the 1st EZB?

PRO
USA
#2  

I thought I could access via script. But, that would explain the problem.

Thanks.