diff --git a/project/imu.c b/project/imu.c
index 2c62df23ee4dae13f6e82efa642e764de5346d0f..dccc4866c136b30c8e2f26a06f440ad6190e6376 100644
--- a/project/imu.c
+++ b/project/imu.c
@@ -161,23 +161,23 @@ void calculate_orientation(){
   if ( (z_axis_abs > x_axis_abs) && (z_axis_abs > y_axis_abs)) {
       // base orientation on Z
       if (z_axis > 0) {
-          orientation = 0;  
+          orientation = (uint8_t) 0x0;
       } else {
-          orientation = 100;
+          orientation = (uint8_t) 0x1;
       }
   } else if ( (y_axis_abs > x_axis_abs) && (y_axis_abs > z_axis_abs)) {
       // base orientation on Y
       if (y_axis > 0) {
-          orientation = 200;
+          orientation = (uint8_t) 0x2;
       } else {
-          orientation = 300;
+          orientation = (uint8_t) 0x3;
       }
   } else {
       // base orientation on X
       if (x_axis < 0) {
-          orientation = 400;
+          orientation = (uint8_t) 0x4;
       } else {
-          orientation = 500;
+          orientation = (uint8_t) 0x5;
       }
   }
 }