ArbotiX_Code/librairies/Motors/Motors.cpp
void Motors::init(){
    /* set up ports */
    pinMode(RIGHT_DIR,OUTPUT);    // Right Dir
    pinMode(LEFT_PWM,OUTPUT);    // Left PWM
    pinMode(RIGHT_PWM,OUTPUT);    // Right PWM
    pinMode(LEFT_DIR,OUTPUT);    // Left Dir

    /* OCR0A/B are the values that the timer is compared to; a match will
       cause the output to change; small values mean the motor runs for a
       short period (slower); larger values are longer times (faster)*/ 
    digitalWrite(LEFT_DIR,LOW);
    digitalWrite(RIGHT_DIR,LOW);
    analogWrite(LEFT_PWM,0);
    analogWrite(RIGHT_PWM,0);
    lPWM = rPWM = 0;    // (value is irrelevant since outputs are disconnected)
}
/* Constructor: sets up microprocessor for PWM control of motors */
sets up microprocessor for PWM control of motors
sets up microprocessor for PWM control of motors
void Motors::init(){
    pinMode(RIGHT_DIR,OUTPUT);    
    pinMode(LEFT_PWM,OUTPUT);    
    pinMode(RIGHT_PWM,OUTPUT);    
    pinMode(LEFT_DIR,OUTPUT);    
    digitalWrite(LEFT_DIR,LOW);
    digitalWrite(RIGHT_DIR,LOW);
    analogWrite(LEFT_PWM,0);
    analogWrite(RIGHT_PWM,0);
    lPWM = rPWM = 0;    
}
void Motors :: init ( ) { pinMode ( RIGHT_DIR , OUTPUT ) ; pinMode ( LEFT_PWM , OUTPUT ) ; pinMode ( RIGHT_PWM , OUTPUT ) ; pinMode ( LEFT_DIR , OUTPUT ) ; digitalWrite ( LEFT_DIR , LOW ) ; digitalWrite ( RIGHT_DIR , LOW ) ; analogWrite ( LEFT_PWM , 0 ) ; analogWrite ( RIGHT_PWM , 0 ) ; lPWM = rPWM = 0 ; }
Constructor: sets up microprocessor for PWM control of motors
Constructor : sets up microprocessor for PWM control of motors
/* set up ports */ // Right Dir // Left PWM // Right PWM // Left Dir /* OCR0A/B are the values that the timer is compared to; a match will
       cause the output to change; small values mean the motor runs for a
       short period (slower); larger values are longer times (faster)*/ // (value is irrelevant since outputs are disconnected)