Searched refs:f32 (Results 1 – 8 of 8) sorted by relevance
/tools/netsim/rust/daemon/src/ |
D | ranging.rs | 23 const PATH_LOSS_AT_1M: f32 = 40.20; 39 pub fn distance_to_rssi(tx_power: i8, distance: f32) -> i8 { in distance_to_rssi() 47 true => (new_tx_power as f32 + PATH_LOSS_AT_1M).clamp(-120.0, 20.0) as i8, in distance_to_rssi() 48 false => (new_tx_power as f32 - 20.0 * distance.log10()).clamp(-120.0, 20.0) as i8, in distance_to_rssi() 55 fn checked_div(num: f32, den: f32) -> Option<f32> { in checked_div() argument 62 fn azimuth(delta: Vec3) -> f32 { in azimuth() argument 66 false => delta.x.signum() * std::f32::consts::FRAC_2_PI, in azimuth() 68 f32::atan, in azimuth() 69 ) + if delta.z >= 0. { 0. } else { delta.x.signum() * std::f32::consts::PI } in azimuth() 75 fn elevation(delta: Vec3) -> f32 { in elevation() argument [all …]
|
D | ffi.rs | 315 fn get_distance_cxx(a: u32, b: u32) -> f32; in get_distance_cxx() argument 370 fn distance_to_rssi(tx_power: i8, distance: f32) -> i8; in distance_to_rssi()
|
/tools/netsim/rust/daemon/src/uwb/ |
D | ranging_data.rs | 19 type TrueDistance = f32; // meters 20 type EstimatedDistance = f32; // meters 93 let x1 = *lower_key as f32 / 100.0; in sample() 95 let x2 = *upper_key as f32 / 100.0; in sample()
|
/tools/netsim/rust/cli/src/ |
D | display.rs | 219 || (self.value.x != f32::default() in fmt() 220 || self.value.y != f32::default() in fmt() 221 || self.value.z != f32::default()) in fmt()
|
D | requests.rs | 214 fn get_expected_move(name: &str, x: f32, y: f32, z: Option<f32>) -> BinaryProtobuf { in get_expected_move() argument
|
D | args.rs | 345 pub x: f32, 347 pub y: f32, 349 pub z: Option<f32>,
|
/tools/netsim/rust/daemon/src/devices/ |
D | devices_handler.rs | 522 fn distance(a: &ProtoPosition, b: &ProtoPosition) -> f32 { in distance() argument 527 fn get_distance(id: &ChipIdentifier, other_id: &ChipIdentifier) -> Result<f32, String> { in get_distance() argument 554 pub fn get_distance_cxx(a: u32, b: u32) -> f32 { in get_distance_cxx() argument 932 fn new_position(x: f32, y: f32, z: f32) -> ProtoPosition { in new_position() argument 936 fn new_orientation(yaw: f32, pitch: f32, roll: f32) -> ProtoOrientation { in new_orientation() argument
|
/tools/netsim/rust/proto/src/ |
D | model.rs | 33 pub x: f32, 35 pub y: f32, 37 pub z: f32, 191 pub yaw: f32, 193 pub pitch: f32, 195 pub roll: f32, 857 pub range: f32,
|