Class MaxPosition
- Namespace
- Harp.StepperDriver
- Assembly
- Harp.StepperDriver.dll
Represents a register that defines the limit of the accumulated steps for the positive movement of all motors. The device will not let the motors move further than this value. A value equal to 0 will disable the limits.
public class MaxPosition
- Inheritance
-
MaxPosition
- Inherited Members
Fields
Address
Represents the address of the MaxPosition register. This field is constant.
public const int Address = 95
Field Value
RegisterLength
Represents the length of the MaxPosition register. This field is constant.
public const int RegisterLength = 4
Field Value
RegisterType
Represents the payload type of the MaxPosition register. This field is constant.
public const PayloadType RegisterType = S32
Field Value
Methods
FromPayload(MessageType, MaxPositionPayload)
Returns a Harp message for the MaxPosition register.
public static HarpMessage FromPayload(MessageType messageType, MaxPositionPayload value)
Parameters
messageType
MessageTypeThe type of the Harp message.
value
MaxPositionPayloadThe value to be stored in the message payload.
Returns
- HarpMessage
A HarpMessage object for the MaxPosition register with the specified message type and payload.
FromPayload(double, MessageType, MaxPositionPayload)
Returns a timestamped Harp message for the MaxPosition register.
public static HarpMessage FromPayload(double timestamp, MessageType messageType, MaxPositionPayload value)
Parameters
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeThe type of the Harp message.
value
MaxPositionPayloadThe value to be stored in the message payload.
Returns
- HarpMessage
A HarpMessage object for the MaxPosition register with the specified message type, timestamp, and payload.
GetPayload(HarpMessage)
Returns the payload data for MaxPosition register messages.
public static MaxPositionPayload GetPayload(HarpMessage message)
Parameters
message
HarpMessageA HarpMessage object representing the register message.
Returns
- MaxPositionPayload
A value representing the message payload.
GetTimestampedPayload(HarpMessage)
Returns the timestamped payload data for MaxPosition register messages.
public static Timestamped<MaxPositionPayload> GetTimestampedPayload(HarpMessage message)
Parameters
message
HarpMessageA HarpMessage object representing the register message.
Returns
- Timestamped<MaxPositionPayload>
A value representing the timestamped message payload.