|
SimpleFOClibrary
2.1
|
Go to the documentation of this file.
48 pinMode(
pwmA, OUTPUT);
49 pinMode(
pwmB, OUTPUT);
50 pinMode(
pwmC, OUTPUT);
int pwmB
phase B pwm pin number
void _configure3PWM(long pwm_frequency, const int pinA, const int pinB, const int pinC)
#define _constrain(amt, low, high)
int pwmC
phase C pwm pin number
float voltage_limit
limiting voltage set to the motor
void _delay(unsigned long ms)
void _writeDutyCycle3PWM(float dc_a, float dc_b, float dc_c, int pinA, int pinB, int pinC)
float dc_c
currently set duty cycle on phaseC
int pwmA
phase A pwm pin number
BLDCDriver3PWM(int phA, int phB, int phC, int en1=NOT_SET, int en2=NOT_SET, int en3=NOT_SET)
void setPwm(float Ua, float Ub, float Uc) override
float voltage_power_supply
power supply voltage
#define DEF_POWER_SUPPLY
default power supply voltage
int enableB_pin
enable pin number
long pwm_frequency
pwm frequency value in hertz
virtual void setPhaseState(int sa, int sb, int sc) override
float dc_a
currently set duty cycle on phaseA
float dc_b
currently set duty cycle on phaseB
int enableA_pin
enable pin number
int enableC_pin
enable pin number