Struct robotconfig::types::encoder::Encoder[][src]

pub struct Encoder {
    pub cpr: i32,
    pub inverted: Option<bool>,
}
Expand description

JSON object for an encoder

{
   "cpr": 0,
   "inverted": false // Default: false
}

Original source: here

Fields

cpr: i32

Number of encoder counts (or pulses) per full rotation of the sensor

inverted: Option<bool>

Weather the inputs are inverted

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.