![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pachas
Dependencies: mbed QEI FastPWM
Diff: stepper_motor_driver.h
- Revision:
- 5:bd5fc0510e7b
- Parent:
- 3:45299e7882b9
- Child:
- 6:d38287621cca
--- a/stepper_motor_driver.h Sat Apr 18 05:13:40 2020 +0000 +++ b/stepper_motor_driver.h Sun Apr 19 05:38:41 2020 +0000 @@ -54,6 +54,8 @@ extern uint32_t inspiration_stepper_pulse_period_us; extern uint32_t expiration_stepper_pulse_period_us; extern uint32_t calibration_stepper_pulse_period_us; +//extern uint32_t min_inspiration_ramp_period_us; +//extern uint32_t min_expiration_ramp_period_us; extern uint32_t volume_in_steps[VOLUME_SETPOINT_INDEX_LIMIT]; // Variables used in every state of the stepper motor driver */ @@ -64,7 +66,10 @@ /* Function declaration */ void Stepper_Driver_Init(void); -void Stepper_Calculate_Period_Ramp(void); +//void Stepper_Calculate_Period_Ramp(void); +float Stepper_Calculate_Insp_Period_Ramp(float max_freq); +float Stepper_Calculate_Exp_Period_Ramp(float max_freq); +float Stepper_Calculate_Exp_Short_Period_Ramp(float max_freq); void Stepper_Go_Home_Position(void); void Stepper_Driver_State_Machine(void); void Stepper_Driver_Pulse_Signal_Update(void);