pub fn speed_to_tuple(inp: [SpeedAndMax; 2]) -> [(u16, u16); 2]