Project

General

Profile

Revision 8913c26d

ID8913c26d9ebc512b1533bd368257904666391c1f

Added by Thomas Mullins over 11 years ago

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.

View differences:

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