refactor(Code Cleanup): Removed Unused Code
This commit is contained in:
parent
6fd02430d3
commit
b541cc620f
|
@ -28,8 +28,6 @@
|
||||||
#define LSM303_TEMP_OUT_H_M 0x31
|
#define LSM303_TEMP_OUT_H_M 0x31
|
||||||
#define LSM303_TEMP_OUT_L_M 0x32
|
#define LSM303_TEMP_OUT_L_M 0x32
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define ACCEL_ADDR 0x19
|
#define ACCEL_ADDR 0x19
|
||||||
#define MAG_ADDR 0x1E
|
#define MAG_ADDR 0x1E
|
||||||
|
|
||||||
|
|
|
@ -317,46 +317,6 @@ updateDirection(volatile direction_t * g_direction)
|
||||||
read_direction(accelerometer, magnetometer, g_direction);
|
read_direction(accelerometer, magnetometer, g_direction);
|
||||||
|
|
||||||
print_orientation_data(*g_direction);
|
print_orientation_data(*g_direction);
|
||||||
//
|
|
||||||
// switch (g_direction->orientation)
|
|
||||||
// {
|
|
||||||
// case NORTH:
|
|
||||||
// cur_y++;
|
|
||||||
// break;
|
|
||||||
// case EAST:
|
|
||||||
// cur_x++;
|
|
||||||
// break;
|
|
||||||
// case SOUTH:
|
|
||||||
// cur_y--;
|
|
||||||
// break;
|
|
||||||
// case WEST:
|
|
||||||
// cur_x--;
|
|
||||||
// break;
|
|
||||||
// case NORTH_EAST:
|
|
||||||
// cur_x++;
|
|
||||||
// cur_y++;
|
|
||||||
// break;
|
|
||||||
// case SOUTH_EAST:
|
|
||||||
// cur_x++;
|
|
||||||
// cur_y--;
|
|
||||||
// break;
|
|
||||||
// case SOUTH_WEST:
|
|
||||||
// cur_x--;
|
|
||||||
// cur_y--;
|
|
||||||
// break;
|
|
||||||
// case NORTH_WEST:
|
|
||||||
// cur_x--;
|
|
||||||
// cur_y++;
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Update the map based on the direction of the car (N, E, S, W)
|
|
||||||
// update_map(g_direction.orientation, cur_x, cur_y);
|
|
||||||
|
|
||||||
// printf("Current Position: (%d, %d)\n", cur_x, cur_y);
|
|
||||||
// print_map();
|
|
||||||
|
|
||||||
// print_roll_and_pitch(g_direction.roll_angle, g_direction.pitch_angle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue