Project

General

Profile

Revision fcd68ec1

IDfcd68ec143816edaeef49aab4f3ac2dffbe44c3b

Added by Thomas Mullins over 11 years ago

Fixed whitespace in motors node

View differences:

scout/motors/src/motors.h
57 57

  
58 58
class Motor
59 59
{
60
  public:
61
    Motor(int pwm_gpt, int in1_gpio, int in2_gpio);
62
    ~Motor();
63
    int get_speed();
64
    void set_speed(int speed);
65
  private:
66
    int speed; /**< The current speed of the motor */
67
    std::fstream fpwm; /**< The device file controlling PWM */
68
    std::fstream fin1; /**< The device file controlling IN1 */
69
    std::fstream fin2; /**< The device file controlling IN2 */
60
    public:
61
        Motor(int pwm_gpt, int in1_gpio, int in2_gpio);
62
        ~Motor();
63
        int get_speed();
64
        void set_speed(int speed);
65
    private:
66
        int speed; /**< The current speed of the motor */
67
        std::fstream fpwm; /**< The device file controlling PWM */
68
        std::fstream fin1; /**< The device file controlling IN1 */
69
        std::fstream fin2; /**< The device file controlling IN2 */
70 70
};
71 71

  
72 72
#endif

Also available in: Unified diff