pub fn convert_to_rotation_segment(degrees: f32) -> u8
Converts an angle in degrees to vanilla’s 16-segment rotation value.