Enum drs_0x01::WritableRamAddr[][src]

pub enum WritableRamAddr {
    ID(u8),
    AckPolicy(u8),
    AlarmLEDPolicy(u8),
    TorquePolicy(u8),
    MaxTemperature(u8),
    MinVoltage(u8),
    MaxVoltage(u8),
    AccelerationRatio(u8),
    MaxAcceleration(u8),
    DeadZone(u8),
    SaturatorOffset(u8),
    SaturatorSlope(u8, u8),
    PWMOffset(u8),
    MinPWM(u8),
    MaxPWM(u8, u8),
    OverloadPWMThreshold(u8, u8),
    MinPosition(u8, u8),
    MaxPosition(u8, u8),
    PositionKp(u8, u8),
    PositionKd(u8, u8),
    PositionKi(u8, u8),
    PositionFFFirstGain(u8, u8),
    PositionFFSecondGain(u8, u8),
    LedBlinkPeriod(u8),
    ADCFaultDetectionPeriod(u8),
    PacketGarbageDetectionPeriod(u8),
    StopDetectionPeriod(u8),
    OverloadDetectionPeriod(u8),
    StopThreshold(u8),
    InpositionMargin(u8),
    CalibrationDifference(u8),
    StatusError(u8),
    StatusDetail(u8),
    TorqueControl(u8),
    LEDControl(u8),
}

This enum represent all the RAM (volatile) memory addresses which can be written to. I comes from the page 24 of the datasheet.

Variants

Servo ID

TODO : Refer to pg 33

Activates LED according to Policy

Releases Torque accroding to Policy

Maximum allowed temperature (0xDF = 85°C)

Minimum allowed voltage (0x5B = 6.714 VDC)

Maximum allowed voltage (0x89 = 10 VDC)

Ratio of time to reach goal position to acceleration or deceleration

Max acceleration time, 11.2ms interval. Acceleration(0x2D : 504 ms)

Outside controle range

TODO : Refer to datasheet page 36

TODO : Refer to datasheet page 36

PWM Offset value, refer to datasheet page 37

Set minimum PWM value, refer to the datasheet page 37

Set maximum PWM value, refer to the datasheet page 37

Set PWM Overload thershold range, refer to the datasheet page 34

Minimum position value (between 0 and 1023)

Maximum position value (between 0 and 1023)

Proportional gain

Derivative gain

Integral gain

Refer to the datasheet page 35

Refer to the datasheet page 35

Alarm LED blink period according to Policy 11.2ms/Tick (0x2D : 504 ms)

Temp/Voltage error check interval. 11.2ms/tick (0x2D : 504 ms)

Packet error check interval. 11.2ms/tick (0x12 : 201 ms)

Stop detection check interval. 11.2ms/tick (0x1B : 302 ms)

Overload check interbal. 11.2ms/tick (0x96 : 1.68 s)

Stop Threshold

Offset Threshold

Servo compensation

Refer to datasheet page 39

Refer to datasheet page 39

Torque enable states (refer to datasheet page 28)

0x01 : Green, 0x02 : Blue, 0x04 : Red

Methods

impl WritableRamAddr
[src]

Return the size in bytes of the value stocked at this address

Trait Implementations

impl Clone for WritableRamAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for WritableRamAddr
[src]

impl Debug for WritableRamAddr
[src]

Formats the value using the given formatter. Read more

impl From<WritableRamAddr> for u8
[src]

Performs the conversion.

Auto Trait Implementations