eBoard ๐Ÿ‰  โ‘ โ‘งโ‘จ
Written for SIA 2017/2018
eagle_NanoMot.h
Go to the documentation of this file.
1 #ifndef EAGLE_EBOARD_HELPLIB_NANOMOT
2 #define EAGLE_EBOARD_HELPLIB_NANOMOT
3 
7  inline void set_motor_speed(optVAL_t spe);
8 
9 
14  inline void set_steer_angle(optVAL_t ang);
15 
17  inline void set_motor_speed(optVAL_t spe){
18  if(spe < 0 || spe > 180) return;
19  mainMotor.write(spe);
20  }
21  inline void set_steer_angle(optVAL_t ang){
22  if(ang < 0 || ang > 180) return;
23  steerMotor.write(ang);
24  }
25 
27 #endif
int optVAL_t
Definition: eBoard.h:172
void set_motor_speed(optVAL_t spe)
sets the speed of the main (data pin: EBOARD_NANO_MAIN) motor
void set_steer_angle(optVAL_t ang)
sets the angle of the steering (data pin: EBOARD_NANO_STEER) motor