pub enum FlightModeSwitch {
One,
Two,
Three,
Unknown(u8),
}Variants§
One
Position One. For all products except Mavic Pro, this is the left most position of the flight mode switch on a remote controller from the perspective of the pilot. For example, on a Phantom 4 remote controller, Position One is labeled “A”. For Mavic Pro, Spark and Mavic Air, this is the position that is furthest away from the pilot and labeled “Sport”.
Two
Position Two. For all products except Mavic Pro, this is the middle position of the flight mode switch on a remote controller from the perspective of the pilot. For example, on a Phantom 4 remote controller, Position Two is labeled “S”. For Mavic Pro, Spark and Mavic Air, this is the position that is closest to the pilot [the P position].
Three
Position Three. For all products except Mavic Pro, this is the right most position of the flight mode switch on a remote controller from the perspective of the pilot. For example, on a Phantom 4 remote controller, Position Two is labeled “P”. Mavic Pro, Spark or Mavic Air does not have a third position for the flight mode switch.
Unknown(u8)
Implementations§
Source§impl FlightModeSwitch
impl FlightModeSwitch
pub fn from(value: u8, product_type: ProductType) -> Self
Trait Implementations§
Source§impl Clone for FlightModeSwitch
impl Clone for FlightModeSwitch
Source§fn clone(&self) -> FlightModeSwitch
fn clone(&self) -> FlightModeSwitch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more