43 #ifndef _MLAB_SCITOS_FUNCTION_BLOCK_POWER_SUPPLY_PORT_H_ 44 #define _MLAB_SCITOS_FUNCTION_BLOCK_POWER_SUPPLY_PORT_H_ 48 namespace mira {
namespace robot {
74 template <
typename Reflector>
79 r.roproperty(
"Charging",
83 r.roproperty(
"Voltage",
85 "Current voltage [V]");
87 r.roproperty(
"Current",
89 "Current current [A]");
193 template <
typename Reflector>
198 r.roproperty(
"MaxCurrent",
200 "Maximum current [A]");
202 r.property(
"Enabled",
207 r.roproperty(
"MaxDissipatedPower",
209 "Maximum allowed dissipated power in [W]");
274 template <
typename Reflector>
279 r.roproperty(
"CurrentDissipatedPower",
281 "Current dissipated power in [W]");
mira::can::CANOpenSDOClientPtr sdoClient
Definition: FunctionBlock.h:93
Function block for charger power supply ports (0x01040001)
Definition: PowerSupplyPort.h:127
uint8 subIndexEnable
Subindex for enable-flag.
Definition: PowerSupplyPort.h:246
float getVoltage()
Return the current voltage.
Definition: PowerSupplyPort.h:100
uint8 subIndexCurrent
Subindex for retrieving the current.
Definition: PowerSupplyPort.h:119
uint8 subIndexIsCharging
Subindex for charging flag.
Definition: PowerSupplyPort.h:113
void reflect(Reflector &r)
Reflect for serialization.
Definition: PowerSupplyPort.h:275
uint8 subIndexCurrentDissipatedPower
Definition: PowerSupplyPort.h:292
uint8 subIndexMaxDissipatedPower
Subindex for max dissipated power.
Definition: PowerSupplyPort.h:249
Function block for charger power supply ports, v4.0.
Definition: PowerSupplyPort.h:255
void reflect(Reflector &r)
Reflect for serialization.
Definition: PowerSupplyPort.h:75
PowerSupplyPort_v01()
Definition: PowerSupplyPort.h:131
#define MIRA_REFLECT_BASE(reflector, BaseClass)
bool isEnabled()
Is the power supply enabled.
Definition: PowerSupplyPort.h:230
PowerSupplyPort_v3()
Constructor.
Definition: PowerSupplyPort.h:177
PowerSupplyPort_v0()
Constructor.
Definition: PowerSupplyPort.h:62
Function block for charger power supply ports (since 0x01040201)
Definition: PowerSupplyPort.h:157
PowerSupplyPort_v2()
Definition: PowerSupplyPort.h:161
Function block for charger power supply ports, v3.0.
Definition: PowerSupplyPort.h:170
uint8 nodeID
ID of the can node.
Definition: FunctionBlock.h:87
PowerSupplyPort_v1()
Definition: PowerSupplyPort.h:146
PowerSupplyPort_v4()
Constructor.
Definition: PowerSupplyPort.h:262
float getCurrent()
Return the current current.
Definition: PowerSupplyPort.h:106
void reflect(Reflector &r)
Reflect for serialization.
Definition: PowerSupplyPort.h:194
virtual ~PowerSupplyPort_v4()
Destructor.
Definition: PowerSupplyPort.h:270
Function block for charger power supply ports (since 0x01040101)
Definition: PowerSupplyPort.h:142
#define MIRA_OBJECT(classIdentifier)
float getCurrentDissipatedPower()
Return the maximum dissipated power.
Definition: PowerSupplyPort.h:286
uint32 functionBlockID
ID of the function block.
Definition: FunctionBlock.h:84
Definition: FunctionBlock.h:53
virtual ~PowerSupplyPort_v3()
Destructor.
Definition: PowerSupplyPort.h:190
Function block for charger power supply ports (0x02010001)
Definition: PowerSupplyPort.h:55
bool isCharging()
Is the power supply enabled.
Definition: PowerSupplyPort.h:94
Base class for different SCITOS CAN function blocks.
virtual ~PowerSupplyPort_v0()
Destructor.
Definition: PowerSupplyPort.h:71
uint8 subIndexVoltage
Subindex for retrieving the voltage.
Definition: PowerSupplyPort.h:116
float getMaxDissipatedPower()
Return the maximum dissipated power.
Definition: PowerSupplyPort.h:236
uint8 subIndexMaxCurrent
Subindex for retrieving the max-current.
Definition: PowerSupplyPort.h:243
uint16 index
Index.
Definition: FunctionBlock.h:90
void enable(bool enable)
Enable the power supply.
Definition: PowerSupplyPort.h:222
float getMaxCurrent()
Return the maximum current.
Definition: PowerSupplyPort.h:214