Revision 8913c26d
Fixed motors node to work around pwm driver bug
The node can now only do writes to /dev/pwm*, because doing both reads
and writes causes the fstream to try seeking, which fails because it's
not supported by the driver. Then the fstream refuses to do any more io.
scout/motors/src/motors.h | ||
---|---|---|
59 | 59 |
{ |
60 | 60 |
public: |
61 | 61 |
Motor(int pwm_gpt, int in1_gpio, int in2_gpio); |
62 |
~Motor(); |
|
62 | 63 |
int get_speed(); |
63 | 64 |
void set_speed(int speed); |
64 | 65 |
private: |
Also available in: Unified diff