class PositionCommand

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
positionfloat32Position value (degrees)
velocityfloat32Velocity value (degrees per second)
accelerationfloat32Acceleration value (degrees per second^squared)

Member functions

Function nameReturn typeInput typeDescription
position()float32voidReturns the current value of position. If the position is not set, returns 0.
set_position()voidfloat32Sets the value of position. After calling this, position() will return value.
clear_position()voidvoidClears the value of position. After calling this, position() will return 0.
velocity()float32voidReturns the current value of velocity. If the velocity is not set, returns 0.
set_velocity()voidfloat32Sets the value of velocity. After calling this, velocity() will return value.
clear_velocity()voidvoidClears the value of velocity. After calling this, velocity() will return 0.
acceleration()float32voidReturns the current value of acceleration. If the acceleration is not set, returns 0.
set_acceleration()voidfloat32Sets the value of acceleration. After calling this, acceleration() will return value.
clear_acceleration()voidvoidClears the value of acceleration. After calling this, acceleration() will return 0.

Parent topic: ActuatorConfig (C++)