parent
2e7ccce082
commit
82b21b357d
@ -1,11 +1,20 @@
|
||||
#ifndef motor_control_h
|
||||
#define motor_control_h
|
||||
|
||||
#define MOTOR_PWM_FREQ 500 // PWM frequency in Hz
|
||||
|
||||
void set_motor_1(bool enabled, float desired_speed);
|
||||
#define MOTOR_CONTROL_PERIOD_MS 100 // Period of the motor control loop
|
||||
|
||||
void motor_control_setup(void);
|
||||
#define MAX_DUTY_RAMP 5.0 // max change in duty per second - where 1.0 is full duty
|
||||
|
||||
void set_motor_1(bool enabled, float desired_speed);
|
||||
void set_motor_2(bool enabled, float desired_speed);
|
||||
void set_motor_3(bool enabled, float desired_speed);
|
||||
|
||||
float get_motor_1_duty(void);
|
||||
float get_motor_2_duty(void);
|
||||
float get_motor_3_duty(void);
|
||||
|
||||
void motor_control_setup(void);
|
||||
|
||||
#endif
|
||||
Loading…
Reference in new issue