Revision ed37d345
Finished adding gpio control to motors node
I changed the Motor constructor to take pin numbers instead of file
names, and construct the file names itself. All that remains in testing.
scout/motors/src/motors.h | ||
---|---|---|
58 | 58 |
class Motor |
59 | 59 |
{ |
60 | 60 |
public: |
61 |
Motor(const char* pwmfile, const char* in1file, const char* in2file);
|
|
61 |
Motor(int pwm_gpt, int in1_gpio, int in2_gpio);
|
|
62 | 62 |
int get_speed(); |
63 | 63 |
void set_speed(int speed); |
64 | 64 |
private: |
Also available in: Unified diff