V5 机器人电池#

V5 机器人电池是一款锂离子电池,旨在最大限度地提高电机性能。

如果您在使用 V5 机器人电池时遇到问题,可以使用 V5 电池诊断工具来评估电池的健康状况和状态。请访问使用 V5 电池诊断工具查看如何使用 V5 固件实用程序访问 V5 电池诊断工具的指南。

以下是可用方法列表:

  • voltage – Returns the voltage of the battery.

  • current – Returns the electrical current drawn from the battery.

  • capacity – Returns the remaining charge level of the battery as a percent.

  • temperature – Returns the average temperature of the battery.

For information on constructing a Brain to gain access to the battery methods, see Brain.

电压#

voltage returns the voltage of the battery.

Usage:
brain.battery.voltage(units)

参数

描述

units

Optional. The unit to represent the voltage:

  • VoltageUnits.MV (default) – Millivolts, from 10,000 to 14,400
  • VoltageUnits.VOLT – Volts, from 10.0 to 14.4

当前的#

current returns the electrical current drawn from the battery from 0.0 to 20.0 Amps.

Usage:
brain.battery.current()

参数

描述

此方法没有参数。

容量#

capacity returns the remaining charge level of the battery as a percent.

Usage:
brain.battery.capacity()

参数

描述

此方法没有参数。

温度#

temperature returns the average temperature of the battery.

Usage:
brain.battery.temperature(units)

参数

描述

units

Optional. The units that represent the temperature:

  • TemperatureUnits.CELSIUS (default)
  • TemperatureUnits.FAHRENHEIT