eBoard ๐
โ โงโจ
Written for SIA 2017/2018
Main Page
Pages
Tutorials
Namespaces
Classes
Files
File List
File Members
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
optVAL_t
int optVAL_t
Definition:
eBoard.h:172
set_motor_speed
void set_motor_speed(optVAL_t spe)
sets the speed of the main (data pin: EBOARD_NANO_MAIN) motor
set_steer_angle
void set_steer_angle(optVAL_t ang)
sets the angle of the steering (data pin: EBOARD_NANO_STEER) motor
eBoard
source
eagle_NanoMot.h
EagleoutIce
27.04.2018 00:20:07