Skip to content

Commit fae63ec

Browse files
committed
FIX forgot to remoive FOCDriver
1 parent 6c02b34 commit fae63ec

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

src/common/interfaces/FOCDriver.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef FOCDRIVER_H
2+
#define FOCDRIVER_H
3+
4+
class FOCDriver{
5+
public:
6+
/** Initialise hardware */
7+
virtual void init();
8+
/** Enable hardware */
9+
virtual void enable();
10+
/** Disable hardware */
11+
virtual void disable();
12+
13+
14+
/** Set the pwm frequency */
15+
virtual void setPwmFrequency(long frequency);
16+
};
17+
18+
#endif

src/common/interfaces/FOCMotor.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "Arduino.h"
55
#include "Sensor.h"
6-
#include "FOCDriver.h"
76

87
#include "../hardware_utils.h"
98
#include "../foc_utils.h"
@@ -56,13 +55,6 @@ class FOCMotor
5655
*/
5756
void linkSensor(Sensor* sensor);
5857

59-
/**
60-
* Function linking a motor and a foc driver
61-
*
62-
* @param driver FOCDriver class implementing all the hardware specific functions necessary PWM setting
63-
*/
64-
void linkDriver(FOCDriver* driver);
65-
6658
/**
6759
* Function initializing FOC algorithm
6860
* and aligning sensor's and motors' zero position
@@ -195,12 +187,6 @@ class FOCMotor
195187
* - HallSensor
196188
*/
197189
Sensor* sensor;
198-
/**
199-
* FOCDriver link:
200-
* - 3PWM
201-
* - 6PWM
202-
*/
203-
FOCDriver* driver;
204190
// monitoring functions
205191
Print* monitor_port; //!< Serial terminal variable if provided
206192
};

0 commit comments

Comments
 (0)