Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

speedRampData Struct Reference

#include <speed_cntr.h>


Detailed Description

Holding data used by timer interrupt for speed ramp calculation.

Contains data used by timer interrupt to calculate speed profile. Data is written to it by move(), when stepper motor is moving (timer interrupt running) data is read/updated when calculating a new step_delay

Definition at line 30 of file speed_cntr.h.

Data Fields

signed int accel_count
 Counter used when accelerateing/decelerateing to calculate step_delay.

unsigned int decel_start
 What step_pos to start decelaration.

signed int decel_val
 Sets deceleration rate.

unsigned char dir: 1
 Direction stepper motor should move.

signed int min_delay
 Minimum time delay (max speed).

unsigned char run_state: 3
 What part of the speed ramp we are in.

unsigned int step_delay
 Peroid of next timer delay. At start this value set the accelration rate.


Field Documentation

signed int speedRampData::accel_count
 

Counter used when accelerateing/decelerateing to calculate step_delay.

Definition at line 44 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

unsigned int speedRampData::decel_start
 

What step_pos to start decelaration.

Definition at line 38 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

signed int speedRampData::decel_val
 

Sets deceleration rate.

Definition at line 40 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

unsigned char speedRampData::dir
 

Direction stepper motor should move.

Definition at line 34 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

signed int speedRampData::min_delay
 

Minimum time delay (max speed).

Definition at line 42 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

unsigned char speedRampData::run_state
 

What part of the speed ramp we are in.

Definition at line 32 of file speed_cntr.h.

Referenced by speed_cntr_Init_Timer1(), speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().

unsigned int speedRampData::step_delay
 

Peroid of next timer delay. At start this value set the accelration rate.

Definition at line 36 of file speed_cntr.h.

Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt().


Generated on Mon May 8 15:05:04 2006 for AVR446 - Linear speed control of stepper motor by doxygen 1.3.7