config_motor.h File Reference


Detailed Description

Copyright (c) 2005 Atmel.This module provide services to define config for motor control. This file is included by config.h in order to access to system wide configuration.

Version:
1.0 (CVS revision :
Revision
1.3
)
Date:
Date
2006/07/12 12:58:26
Author:
Author
raubree

Definition in file config_motor.h.

#include "compiler.h"
#include "mcu.h"
#include "inavr.h"

Include dependency graph for config_motor.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DUTY_RAMP_UP   140
 Define the voltage during the ramp up sequence.
#define HIGH_AND_LOW_PWM
 Define Type of Pulse Width Modulation.
#define K_cur_scal   4
#define K_pos_scal   5
#define K_SPEED   136607
#define K_speed_scal   5
#define Kd_cur   0
#define Kd_pos   20
#define Kd_speed   0
#define Ki_cur   3
#define Ki_pos   3
#define Ki_speed   2
#define Klin_speed   185
#define Kp_cur   1
#define Kp_pos   9
#define Kp_speed   6

Enumerations

enum  {
  HS_001 = 1, HS_010 = 2, HS_011 = 3, HS_100 = 4,
  HS_101 = 5, HS_110 = 6
}
 This enumeration contains the 6 differents values for the Hall Sensors See design document. More...
enum  { RUN = TRUE, STOP = FALSE }
 Define the two states of the motor. More...
enum  { CCW = TRUE, CW = FALSE }
 Define Direction of rotor : CCW and CW. More...
enum  { OPEN_LOOP = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2, POSITION_LOOP = 3 }
 Define the different kinds of regulation. More...


Define Documentation

#define DUTY_RAMP_UP   140

Define the voltage during the ramp up sequence.

Definition at line 55 of file config_motor.h.

Referenced by mci_run().

#define HIGH_AND_LOW_PWM

Define Type of Pulse Width Modulation.

Definition at line 50 of file config_motor.h.

#define K_cur_scal   4

Definition at line 89 of file config_motor.h.

Referenced by mc_control_current().

#define K_pos_scal   5

Definition at line 90 of file config_motor.h.

Referenced by mc_control_position().

#define K_SPEED   136607

Definition at line 97 of file config_motor.h.

Referenced by mc_estimation_speed().

#define K_speed_scal   5

Definition at line 88 of file config_motor.h.

Referenced by mc_control_speed().

#define Kd_cur   0

Definition at line 77 of file config_motor.h.

#define Kd_pos   20

Definition at line 82 of file config_motor.h.

Referenced by mc_control_position().

#define Kd_speed   0

Definition at line 71 of file config_motor.h.

#define Ki_cur   3

Definition at line 76 of file config_motor.h.

Referenced by mc_control_current().

#define Ki_pos   3

Definition at line 81 of file config_motor.h.

Referenced by mc_control_position().

#define Ki_speed   2

Definition at line 70 of file config_motor.h.

Referenced by mc_control_speed().

#define Klin_speed   185

Definition at line 72 of file config_motor.h.

Referenced by mc_control_speed().

#define Kp_cur   1

Definition at line 75 of file config_motor.h.

Referenced by mc_control_current().

#define Kp_pos   9

Definition at line 80 of file config_motor.h.

Referenced by mc_control_position().

#define Kp_speed   6

Definition at line 69 of file config_motor.h.

Referenced by mc_control_speed().


Enumeration Type Documentation

anonymous enum

This enumeration contains the 6 differents values for the Hall Sensors See design document.

In this application, just 3 hall sensor are used Hall Sensor : position 1 to 6

Enumerator:
HS_001 
HS_010 
HS_011 
HS_100 
HS_101 
HS_110 

Definition at line 34 of file config_motor.h.

00034 {HS_001=1,HS_010=2,HS_011=3,HS_100=4,HS_101=5,HS_110=6};

anonymous enum

Define the two states of the motor.

Enumerator:
RUN 
STOP 

Definition at line 40 of file config_motor.h.

00040 {RUN = TRUE, STOP = FALSE};

anonymous enum

Define Direction of rotor : CCW and CW.

Enumerator:
CCW 
CW 

Definition at line 45 of file config_motor.h.

00045 {CCW = TRUE, CW = FALSE};

anonymous enum

Define the different kinds of regulation.

Enumerator:
OPEN_LOOP 
SPEED_LOOP 
CURRENT_LOOP 
POSITION_LOOP 

Definition at line 60 of file config_motor.h.

00060 {OPEN_LOOP = 0, SPEED_LOOP = 1, CURRENT_LOOP = 2, POSITION_LOOP = 3};


Generated on Wed Jul 12 16:55:12 2006 for Atmel BLDC Sensorless on ATAVRMC100 by  doxygen 1.4.7