Project

General

Profile

Revision ed37d345

IDed37d34575cf1b74380aa5880a4f338d8ff11f1b

Added by Thomas Mullins almost 5 years ago

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.

View differences:

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