pub enum DoorControlTarget {
Closed,
Released(DoorSide),
Open(DoorSide),
}Expand description
Now, we come to the door status information. Two different messages were used here in the previous Lotus.
One is ATBUSSTOP (integer) and the other is DOORSOPEN (integer). We now want to merge these.
This will no longer only contain the information ‘door release’ yes/no,
but also the status of whether the doors have generally been opened and on which side the doors are released/opened.
As with the other messages before, this information is NOT transmitted via the coupling so that the door side is not twisted in the case of asymmetrically coupled vehicles. Of course, there can also be several circuits here, e.g. in buses for the front end and the rear end. It is only important that all modules receive this information once.
Variants§
Trait Implementations§
Source§impl Clone for DoorControlTarget
impl Clone for DoorControlTarget
Source§fn clone(&self) -> DoorControlTarget
fn clone(&self) -> DoorControlTarget
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoorControlTarget
impl Debug for DoorControlTarget
Source§impl Default for DoorControlTarget
impl Default for DoorControlTarget
Source§fn default() -> DoorControlTarget
fn default() -> DoorControlTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DoorControlTarget
impl<'de> Deserialize<'de> for DoorControlTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MessageType for DoorControlTarget
impl MessageType for DoorControlTarget
Source§const MESSAGE_META: MessageMeta
const MESSAGE_META: MessageMeta
The metadata for the message type.
Source§impl PartialEq for DoorControlTarget
impl PartialEq for DoorControlTarget
Source§impl Serialize for DoorControlTarget
impl Serialize for DoorControlTarget
impl Copy for DoorControlTarget
impl StructuralPartialEq for DoorControlTarget
Auto Trait Implementations§
impl Freeze for DoorControlTarget
impl RefUnwindSafe for DoorControlTarget
impl Send for DoorControlTarget
impl Sync for DoorControlTarget
impl Unpin for DoorControlTarget
impl UnwindSafe for DoorControlTarget
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)