EZB
Information about the EZB controllers: whether one is connected, its battery voltage and its processor temperature, and the levels at which it warns about them. EZB 0 is the first controller in the project.
Where to find it: type EZB. in a Python script, or open the ARCx API view of the script editor and expand EZB
Commands
| Command | What it does |
|---|---|
| EZB.GetCPUTemp | Returns the CPU temperature of the first EZB, in degrees Celsius. |
| EZB.GetVoltage | Returns the battery voltage of the first EZB, in volts. |
| EZB.IsConnected | Checks whether an EZB is connected. |
| EZB.SetCPUTemp | Sets the CPU temperature reported for the first EZB, for firmware that cannot measure it. |
| EZB.SetVoltage | Sets the battery voltage reported for the first EZB, for firmware that cannot measure it. |
Details
EZB.GetCPUTemp
Returns the CPU temperature of the first EZB, in degrees Celsius. Read from the EZB when its firmware supports it, otherwise the last value seen or set (0 if none); an EZB that is not connected normally reads 0.
EZB.GetCPUTemp()
EZB.GetCPUTemp(ezbIndex)
| Value | Type | What it is |
|---|---|---|
ezbIndex |
int | Optional. Which EZB to use, 0 being the first one. |
Gives back: float. The CPU temperature in degrees Celsius.
EZB.GetVoltage
Returns the battery voltage of the first EZB, in volts. Read from the EZB when its firmware supports it, otherwise the last value seen or set (0 if none); an EZB that is not connected normally reads 0.
EZB.GetVoltage()
EZB.GetVoltage(ezbIndex)
| Value | Type | What it is |
|---|---|---|
ezbIndex |
int | Optional. Which EZB to use, 0 being the first one. |
Gives back: float. The battery voltage in volts.
EZB.IsConnected
Checks whether an EZB is connected. Raises an error if there is no EZB at that index.
EZB.IsConnected(ezbIndex)
| Value | Type | What it is |
|---|---|---|
ezbIndex |
int | Which EZB to use, 0 being the first one. |
Gives back: bool. Whether the EZB is connected.
EZB.SetCPUTemp
Sets the CPU temperature reported for the first EZB, for firmware that cannot measure it. Nothing is sent to the EZB, and firmware that can measure temperature replaces it on the next reading.
EZB.SetCPUTemp(temp)
EZB.SetCPUTemp(temp, ezbIndex)
| Value | Type | What it is |
|---|---|---|
temp |
float | The temperature in degrees Celsius. |
ezbIndex |
int | Optional. Which EZB to use, 0 being the first one. |
EZB.SetVoltage
Sets the battery voltage reported for the first EZB, for firmware that cannot measure it. Nothing is sent to the EZB, and firmware that can measure voltage replaces it on the next reading.
EZB.SetVoltage(voltage)
EZB.SetVoltage(voltage, ezbIndex)
| Value | Type | What it is |
|---|---|---|
voltage |
float | The voltage in volts. |
ezbIndex |
int | Optional. Which EZB to use, 0 being the first one. |