pub fn mspeed(x: f32) -> f32