crazyflie-lib 0.8.1

Crazyflie quadcopter control lib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crazyflie_lib::Value;
use half::f16;
use std::convert::TryInto;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let a: f16 = f16::from_f32(32f32);
    let v: Value = a.into();

    let c: f16 = v.try_into()?;

    dbg!(v);
    dbg!(c);

    let d: f32 = v.try_into()?;
    dbg!(d);

    Ok(())
}