SimpleFOClibrary
2.1
CurrentSense.h
Go to the documentation of this file.
1
#ifndef CURRENTSENSE_H
2
#define CURRENTSENSE_H
3
4
#include "
BLDCDriver.h
"
5
#include "../foc_utils.h"
6
11
class
CurrentSense
{
12
public
:
13
18
virtual
void
init
() = 0;
19
25
virtual
int
driverSync
(
BLDCDriver
*driver) = 0;
26
27
// calibration variables
28
bool
skip_align
=
false
;
29
37
virtual
int
driverAlign
(
BLDCDriver
*driver,
float
voltage
) = 0;
38
47
virtual
PhaseCurrent_s
getPhaseCurrents
() = 0;
56
virtual
float
getDCCurrent
(
float
angle_el = 0);
57
64
DQCurrent_s
getFOCCurrents
(
float
angle_el);
65
};
66
67
#endif
CurrentSense::getPhaseCurrents
virtual PhaseCurrent_s getPhaseCurrents()=0
BLDCDriver
Definition:
BLDCDriver.h:6
voltage
@ voltage
Torque control using voltage.
Definition:
FOCMotor.h:39
CurrentSense::skip_align
bool skip_align
variable signaling that the phase current direction should be verified during initFOC()
Definition:
CurrentSense.h:28
DQCurrent_s
Definition:
foc_utils.h:34
CurrentSense::getFOCCurrents
DQCurrent_s getFOCCurrents(float angle_el)
Definition:
CurrentSense.cpp:37
CurrentSense
Definition:
CurrentSense.h:11
CurrentSense::driverSync
virtual int driverSync(BLDCDriver *driver)=0
BLDCDriver.h
CurrentSense::getDCCurrent
virtual float getDCCurrent(float angle_el=0)
Definition:
CurrentSense.cpp:7
PhaseCurrent_s
Definition:
foc_utils.h:40
CurrentSense::driverAlign
virtual int driverAlign(BLDCDriver *driver, float voltage)=0
CurrentSense::init
virtual void init()=0
Arduino
libraries
Arduino-FOC
src
common
base_classes
CurrentSense.h
Generated by
1.8.18