Skip to content
Snippets Groups Projects
Commit b72fd7ea authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Supply 'super' for servo subclasses

parent b2e1f77f
Branches
Tags
No related merge requests found
...@@ -31,6 +31,7 @@ class libServo : public Servo { ...@@ -31,6 +31,7 @@ class libServo : public Servo {
int8_t attach(const int pin, const int min, const int max); int8_t attach(const int pin, const int min, const int max);
void move(const int value); void move(const int value);
private: private:
typedef Servo super;
uint16_t min_ticks, max_ticks; uint16_t min_ticks, max_ticks;
uint8_t servoIndex; // index into the channel data for this servo uint8_t servoIndex; // index into the channel data for this servo
}; };
...@@ -35,6 +35,7 @@ class libServo : public Servo { ...@@ -35,6 +35,7 @@ class libServo : public Servo {
int8_t attach(const int pin, const int min, const int max); int8_t attach(const int pin, const int min, const int max);
void move(const int value); void move(const int value);
private: private:
typedef Servo super;
uint16_t min_ticks, max_ticks; uint16_t min_ticks, max_ticks;
uint8_t servoIndex; // index into the channel data for this servo uint8_t servoIndex; // index into the channel data for this servo
}; };
...@@ -30,6 +30,7 @@ class libServo : public Servo { ...@@ -30,6 +30,7 @@ class libServo : public Servo {
int8_t attach(const int pin, const int min, const int max); int8_t attach(const int pin, const int min, const int max);
void move(const int value); void move(const int value);
private: private:
typedef Servo super;
uint16_t min_ticks; uint16_t min_ticks;
uint16_t max_ticks; uint16_t max_ticks;
uint8_t servoIndex; // index into the channel data for this servo uint8_t servoIndex; // index into the channel data for this servo
......
...@@ -30,6 +30,7 @@ class libServo : public Servo { ...@@ -30,6 +30,7 @@ class libServo : public Servo {
int8_t attach(const int pin, const int min, const int max); int8_t attach(const int pin, const int min, const int max);
void move(const int value); void move(const int value);
private: private:
typedef Servo super;
uint16_t min_ticks; uint16_t min_ticks;
uint16_t max_ticks; uint16_t max_ticks;
uint8_t servoIndex; // Index into the channel data for this servo uint8_t servoIndex; // Index into the channel data for this servo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment