   holdingRegs[TOTAL_ERRORS] = modbus_update(holdingRegs);
   IR_update();
   Floor_update();
+  Compass_update();
   delay(50);
 }
 

  IR,
  VOLTS,
  FLOOR, 
  E3,
  E4,
  E5,
  E6,

  }    
  prevfloor=holdingRegs[FLOOR];
}

void Compass_update(){
  holdingRegs[COMPASS]=Robot.compassRead();
}
