feathersdk.robot.services.battery_service Module¶
- class feathersdk.robot.services.battery_service.BatteryServiceConfig(*, module_name='battery_service', telemetry_size=100, operating_frequency=1.0, soc_telem_act_id=125, param_read_timeout=0.5)¶
Bases:
PyDFrozenBaseModelConfiguration for the battery service.
- Parameters:
- param_read_timeout: float¶
Max seconds to wait for one SOC param’s telemetry to update after requesting a read.
- model_config: ClassVar[ConfigDict] = {'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class feathersdk.robot.services.battery_service.BatteryTelemetry(service)¶
Bases:
ActuatorTelemetry[SOCParamCode]Telemetry for the battery.
- Parameters:
service (BatteryService)
- PARAMS¶
The telemetry and write_param()/read_param() parameters for the battery.
alias of
SOCParamCode
- class feathersdk.robot.services.battery_service.BatteryService(config, *args, **kwargs)¶
Bases:
RobotModule[BatteryServiceConfig]A service that monitors the battery.
- Parameters:
config (BatteryServiceConfig)
robot (FeatherRobot)
- PARAMS¶
The telemetry parameters for the battery.
- node_id¶
The canopen node ID of the SOC board.