Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/drivers/BLDCDriver3PWM.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class BLDCDriver3PWM: public BLDCDriver
BLDCDriver3PWM(int phA,int phB,int phC, int en1 = NOT_SET, int en2 = NOT_SET, int en3 = NOT_SET);

/** Motor hardware init function */
int init() override;
virtual int init() override;
/** Motor disable function */
void disable() override;
virtual void disable() override;
/** Motor enable function */
void enable() override;
virtual void enable() override;

// hardware variables
int pwmA; //!< phase A pwm pin number
Expand All @@ -46,7 +46,7 @@ class BLDCDriver3PWM: public BLDCDriver
* @param Ub - phase B voltage
* @param Uc - phase C voltage
*/
void setPwm(float Ua, float Ub, float Uc) override;
virtual void setPwm(float Ua, float Ub, float Uc) override;

/**
* Set phase voltages to the hardware
Expand Down
8 changes: 4 additions & 4 deletions src/drivers/BLDCDriver6PWM.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class BLDCDriver6PWM: public BLDCDriver
BLDCDriver6PWM(int phA_h,int phA_l,int phB_h,int phB_l,int phC_h,int phC_l, int en = NOT_SET);

/** Motor hardware init function */
int init() override;
virtual int init() override;
/** Motor disable function */
void disable() override;
virtual void disable() override;
/** Motor enable function */
void enable() override;
virtual void enable() override;

// hardware variables
int pwmA_h,pwmA_l; //!< phase A pwm pin number
Expand All @@ -50,7 +50,7 @@ class BLDCDriver6PWM: public BLDCDriver
* @param Ub - phase B voltage
* @param Uc - phase C voltage
*/
void setPwm(float Ua, float Ub, float Uc) override;
virtual void setPwm(float Ua, float Ub, float Uc) override;

/**
* Set phase voltages to the harware
Expand Down
8 changes: 4 additions & 4 deletions src/drivers/StepperDriver2PWM.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class StepperDriver2PWM: public StepperDriver
StepperDriver2PWM(int pwm1, int dir1, int pwm2, int dir2, int en1 = NOT_SET, int en2 = NOT_SET);

/** Motor hardware init function */
int init() override;
virtual int init() override;
/** Motor disable function */
void disable() override;
virtual void disable() override;
/** Motor enable function */
void enable() override;
virtual void enable() override;

// hardware variables
int pwm1; //!< phase 1 pwm pin number
Expand All @@ -58,7 +58,7 @@ class StepperDriver2PWM: public StepperDriver
* @param Ua phase A voltage
* @param Ub phase B voltage
*/
void setPwm(float Ua, float Ub) override;
virtual void setPwm(float Ua, float Ub) override;

/**
* Set phase voltages to the hardware
Expand Down
8 changes: 4 additions & 4 deletions src/drivers/StepperDriver4PWM.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class StepperDriver4PWM: public StepperDriver
StepperDriver4PWM(int ph1A,int ph1B,int ph2A,int ph2B, int en1 = NOT_SET, int en2 = NOT_SET);

/** Motor hardware init function */
int init() override;
virtual int init() override;
/** Motor disable function */
void disable() override;
virtual void disable() override;
/** Motor enable function */
void enable() override;
virtual void enable() override;

// hardware variables
int pwm1A; //!< phase 1A pwm pin number
Expand All @@ -45,7 +45,7 @@ class StepperDriver4PWM: public StepperDriver
* @param Ua phase A voltage
* @param Ub phase B voltage
*/
void setPwm(float Ua, float Ub) override;
virtual void setPwm(float Ua, float Ub) override;


/**
Expand Down