Open Dr0pler opened 3 years ago
import xarm
arm = xarm.Controller('USB')
battery_voltage = arm.getBatteryVoltage() print('Battery voltage (volts):', battery_voltage)
check your python filename is not 'xarm'
import xarm
arm = xarm.Controller('USB')
battery_voltage = arm.getBatteryVoltage() print('Battery voltage (volts):', battery_voltage)