Struct vehicle_signals::v3::vehicle::chassis::steeringwheel::Extension
source · [−]Expand description
Steering wheel column extension from dashboard. 0 = Closest to dashboard. 100 = Furthest from dashboard.. The unit of this type is percent
Fields
value: Percent<u8>
timestamp: Timestamp
Implementations
sourceimpl Extension
impl Extension
sourcepub fn create_topic_with_name(
participant: &DdsParticipant,
name: &str,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic_with_name(
participant: &DdsParticipant,
name: &str,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
Create a topic using of this Type specifying the topic name
Arguments
participant
- The participant handle onto which this topic should be createdname
- The name of the topicmaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
sourcepub fn create_topic(
participant: &DdsParticipant,
maybe_topic_prefix: Option<&str>,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
pub fn create_topic(
participant: &DdsParticipant,
maybe_topic_prefix: Option<&str>,
maybe_qos: Option<DdsQos>,
maybe_listener: Option<DdsListener>
) -> Result<DdsTopic<Self>, DDSError>
Create a topic of this Type using the default topic name. The default topic name is provided by the Self::topic_name function.
Arguments
participant
- The participant handle onto which this topic should be createdmaybe_topic_prefix
- An additional prefix to be added to the topic name. This can be Nonemaybe_qos
- A QoS structure for this topic. The Qos is optionalmaybe_listener
- A listener to use on this topic. The listener is optional
sourcepub fn create_sample_buffer(len: usize) -> SampleBuffer<Extension>
pub fn create_sample_buffer(len: usize) -> SampleBuffer<Extension>
Create a sample buffer for storing an array of samples You can pass the sample buffer into a read to read multiple samples. Multiple samples are useful when you have one or more keys in your topic structure. Each value of the key will result in the storage of another sample.
sourceimpl Extension
impl Extension
pub fn timestamp(&self) -> &Timestamp
sourcepub fn value(&self) -> &Percent<u8>
pub fn value(&self) -> &Percent<u8>
Get the Steering wheel column extension from dashboard. 0 = Closest to dashboard. 100 = Furthest from dashboard.. The unit of this type is percent
sourcepub fn set(&mut self, value: Percent<u8>, maybe_timestamp: Option<Timestamp>)
pub fn set(&mut self, value: Percent<u8>, maybe_timestamp: Option<Timestamp>)
Set the Steering wheel column extension from dashboard. 0 = Closest to dashboard. 100 = Furthest from dashboard.. The unit of this type is percent . Ensure that the value is within bounds as per the specification. This function will panic in case the value is out of bounds.
sourcepub fn bounds_check(v: &Percent<u8>) -> bool
pub fn bounds_check(v: &Percent<u8>) -> bool
check if the given value is within the limits defined in the specification. Return true if the value is within bounds.