src/experiments/k4/K4ClientPIC/ClientPIC.cpp
int CClientPIC::CalibrateAxis(int addr)
 {
   //do this twice b/c sometime encoder doesn't always get zeroed after 1 reset
   
   D_ResetEncoder((byte)addr);
   D_ResetEncoder((byte)addr);
   //for now just set calibrated flag to 1
     calibrated[addr-1] = 1;  
   
   return 0;
 }
/* this function performs a simple calibration procedure for motor #addr.
essentially, all motors are initially hand-calibrated to their predetermined
zero position before startup. thus, this calibration process simply reset 
encoder value for motor #addr */
this function performs a simple calibration procedure for motor #addr.
essentially, all motors are initially hand-calibrated to their predetermined
zero position before startup. thus, this calibration process simply reset
encoder value for motor #addr
this function performs a simple calibration procedure for motor #addr . essentially all motors are initially hand - calibrated to their predetermined zero position before startup . thus this calibration process simply reset encoder value for motor #addr
int CClientPIC::CalibrateAxis(int addr)
 {
   D_ResetEncoder((byte)addr);
   D_ResetEncoder((byte)addr);
     calibrated[addr-1] = 1;  
   return 0;
 }
int CClientPIC :: CalibrateAxis ( int addr ) { D_ResetEncoder ( ( byte ) addr ) ; D_ResetEncoder ( ( byte ) addr ) ; calibrated [ addr - 1 ] = 1 ; return 0 ; }
this function performs a simple calibration procedure for motor #addr.
this function performs a simple calibration procedure for motor #addr .
//do this twice b/c sometime encoder doesn't always get zeroed after 1 reset //for now just set calibrated flag to 1