V5 机器人电池#

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

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

以下是可用方法列表:

  • voltage — Returns the battery voltage.

  • current — Returns the battery current draw.

  • capacity — Returns the remaining battery capacity.

  • temperature – Returns the average temperature of the battery.

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

电压#

Voltage is the electrical pressure supplied to the battery. voltage returns the voltage of the battery as a decimal (float), which can help you check whether the battery is charged enough for the robot to run reliably.

Usage:
brain.battery.voltage(units)

参数

描述

units

Optional. The unit to represent the voltage: VoltageUnits.MV (default) – Millivolts, from 10,000 to 14,400, or VoltageUnits.VOLT – Volts, from 10.0 to 14.4

当前的#

Current is how much electrical flow the robot is using from the battery. current returns the electrical current drawn from the battery in amps as a decimal (float), which can help you see how hard the robot is working or whether motors may be under extra load, ranging from 0.0 to 20.0 Amps.

Usage:
brain.battery.current()

参数

描述

此方法没有参数。

容量#

capacity returns the remaining battery level, as a percentage from 0% to 100%.

Usage:
brain.battery.capacity()

参数

描述

此方法没有参数。

温度#

temperature returns the average temperature of the battery. The operating temperature range for the battery is approximately 20°C (68°F) to 70°C (158°F).

Usage:
brain.battery.temperature(units)

参数

描述

units

Optional. The temperature unit: TemperatureUnits.CELSIUS (default), or s TemperatureUnits.FAHRENHEIT