Skip to content
Snippets Groups Projects
Commit e039d06f authored by Robert Hedman's avatar Robert Hedman
Browse files

fixed type

parent d90e46c9
No related branches found
No related tags found
No related merge requests found
......@@ -276,7 +276,7 @@ fn tick_to_speed(tick: i32) -> f32 {
}
fn update_state(pos: &(f32,f32,f32), l_speed: f32, r_speed: f32) {
pos.0 += 0.5*(l_speed + r_speed)*((pos.2).to_radians().sin());
pos.0 += 0.5*(l_speed + r_speed)*((pos.2).to_radians().cos());
pos.1 += 0.5*(l_speed + r_speed)*((pos.2).to_radians().cos());
pos.2 += (r_speed - l_speed)/AXEL_WIDTH;
}
fn update_map_with_lidar(lidar_data: [u8; LIDAR_BUF_SIZE], message_len: usize, map: &mut [[u32; ROWS]; COLS]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment