Struct multiwii_serial_protocol::structs::MspRcTuning
[−]
[src]
pub struct MspRcTuning { pub rc_rate8: u8, pub rc_expo8: u8, pub rate_roll: u8, pub rate_pitch: u8, pub rate_yaw: u8, pub dyn_thr_pid: u8, pub thr_mid8: u8, pub thr_expo8: u8, pub tpa_breakpoint: u16, pub rc_yaw_expo8: u8, pub rc_yaw_rate8: u8, }
Fields
rc_rate8: u8
rc_expo8: u8
rate_roll: u8
rate_pitch: u8
rate_yaw: u8
dyn_thr_pid: u8
thr_mid8: u8
thr_expo8: u8
tpa_breakpoint: u16
rc_yaw_expo8: u8
rc_yaw_rate8: u8
Methods
impl MspRcTuning
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 12]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 12]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 12]> for MspRcTuning
[src]
Structure that can be packed an unpacked into 12 bytes.
Bit, MSB0 | Name | Type |
0:7 | rc_rate8 | u8 |
8:15 | rc_expo8 | u8 |
16:23 | rate_roll | u8 |
24:31 | rate_pitch | u8 |
32:39 | rate_yaw | u8 |
40:47 | dyn_thr_pid | u8 |
48:55 | thr_mid8 | u8 |
56:63 | thr_expo8 | u8 |
64:79 | tpa_breakpoint | u16 |
80:87 | rc_yaw_expo8 | u8 |
88:95 | rc_yaw_rate8 | u8 |
fn pack(&self) -> [u8; 12]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 12]) -> Result<MspRcTuning, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspRcTuning
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspRcTuning
[src]
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
Pack the structure into an output buffer.
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
[src]
Unpack the structure from a buffer.
fn packed_bytes() -> usize
[src]
Number of bytes that this structure demands for packing or unpacking.
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
Pack the structure into a new byte vector.
impl PackedStructDebug for MspRcTuning
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspRcTuning
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspRcTuning
[src]
impl Copy for MspRcTuning
[src]
impl Clone for MspRcTuning
[src]
fn clone(&self) -> MspRcTuning
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for MspRcTuning
[src]
fn default() -> MspRcTuning
[src]
Returns the "default value" for a type. Read more