Variables | |
| U8 | last_direction |
| Window operating direction during last operation (according to command). | |
| U8 | direction |
| Window operating direction (according to command). | |
| signed char | ctrl_state = STOP_STATE |
| Window-lift Control state (see Window lift control state machine definitions). | |
| U16 | position |
| Window position buffer. | |
| U16 | ref |
| Computed current reference ( I(A) <-> ADC * ADC gain ). | |
| U16 | current |
| Current Image: Has to be filtered (meaned) for the algorithm to work well. | |
| U8 | pinch_threshold |
| Pinch Threshold: Must be parametred by user (in Newton). | |
| U16 | pinch |
| Normalized pinch threshold according to gain (motor & ADC parameters). | |
| U8 | gain |
| Global gain to determine pinch value. | |
Window operating direction during last operation (according to command).
Range : [DOWNWARD, UPWARD]
Definition at line 59 of file window_lib.c.
Referenced by Read_Eep_WindowParameters(), save_window_parameters(), and window_ctrl().
| U8 direction |
Window operating direction (according to command).
Range : [DOWNWARD, UPWARD]
Definition at line 63 of file window_lib.c.
Referenced by window_ctrl().
| signed char ctrl_state = STOP_STATE |
Window-lift Control state (see Window lift control state machine definitions).
Definition at line 66 of file window_lib.c.
Referenced by force_window_state(), get_window_state(), save_window_parameters(), and window_ctrl().
| U16 position |
Window position buffer.
Range [0 to down] 0 is origin at top of the window down is the max registrable hall sensor edges
Definition at line 72 of file window_lib.c.
Referenced by blocking_point(), Read_Eep_WindowParameters(), and window_ctrl().
| U16 ref |
Computed current reference ( I(A) <-> ADC * ADC gain ).
Range : [0 to (current measured values) * (ADC gain)]. It's the reference to be compared with current*gain (ADC values) to detect a pinch. Computed according to derivative speed and measured current.
Definition at line 78 of file window_lib.c.
Referenced by blocking_point(), init_window_size_position(), and window_ctrl().
| U16 current |
Current Image: Has to be filtered (meaned) for the algorithm to work well.
Range [0 to (current * ADC gain)]. To be compared with reference current value (ref)
Definition at line 83 of file window_lib.c.
Referenced by blocking_point(), init_window_size_position(), and window_ctrl().
Pinch Threshold: Must be parametred by user (in Newton).
When nothing is paramtred in eeprom, it is set to PINCH_THRES default value. It is stored/recalled to/from eeprom. (see Default Anti-pinch detection parameters)
Definition at line 88 of file window_lib.c.
Referenced by Read_Eep_WindowParameters().
| U16 pinch |
Normalized pinch threshold according to gain (motor & ADC parameters).
Pinch is computed by eeprom parameters reading routine, using pinch_threshold and gain to be directly compared to acquired current values.
Definition at line 94 of file window_lib.c.
Referenced by blocking_point(), get_block_point(), init_window_size_position(), save_window_parameters(), and window_ctrl().
| U8 gain |
Global gain to determine pinch value.
Definition at line 97 of file window_lib.c.
Referenced by Read_Eep_WindowParameters(), and save_window_parameters().
1.4.7