mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-25 15:44:02 -06:00
Supply 'super' for servo subclasses
This commit is contained in:
parent
b2e1f77f58
commit
b72fd7ea9c
4 changed files with 10 additions and 6 deletions
|
@ -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 {
|
||||||
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,7 +30,8 @@ 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:
|
||||||
uint16_t min_ticks;
|
typedef Servo super;
|
||||||
uint16_t max_ticks;
|
uint16_t min_ticks;
|
||||||
uint8_t servoIndex; // index into the channel data for this servo
|
uint16_t max_ticks;
|
||||||
|
uint8_t servoIndex; // index into the channel data for this servo
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,7 +30,8 @@ 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:
|
||||||
uint16_t min_ticks;
|
typedef Servo super;
|
||||||
uint16_t max_ticks;
|
uint16_t min_ticks;
|
||||||
uint8_t servoIndex; // Index into the channel data for this servo
|
uint16_t max_ticks;
|
||||||
|
uint8_t servoIndex; // Index into the channel data for this servo
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue