13.11. Flap Servo Driver - FlapServoDrvr
Id |
FlapServoDrvr |
Version |
main |
Title |
Flap Servo Driver |
System |
Thermal |
Document Type |
Application Software Component Specification Preview |
13.11.1. Overview
The Flap Servo Driver component controls the position of the flap servo motor based on the requested flap position. It handles calibration of the flap positions on startup and monitors for faults such as overcurrent and out of range voltage. The component interfaces with the flap servo motor hardware using PWM signals to drive the motor to the desired position.
13.11.2. Functions
Title |
Description |
|
|---|---|---|
1 |
Initialize |
Initializes the flap servo driver, sets pin modes for the flap position sensor input and flap motor control outputs. |
2 |
Process Flap Position Request |
Processes the requested flap position (0-100%) and determines the target voltage for the flap position sensor corresponding to the requested position. |
3 |
Control Flap Motor |
Controls the flap servo motor to drive the flaps to the requested position. Outputs PWM signals to the motor driver to open or close the flaps. Stops the motor when the target position is reached. |
4 |
Perform Flap Calibration |
Automatically calibrates the minimum and maximum flap positions on component startup. Drives the flaps fully closed and fully open to learn the position sensor voltages at the two end stops. |
5 |
Monitor Faults |
Monitors for fault conditions during operation, such as overcurrent in the motor driver, or position sensor voltage out of valid range. Disables the motor and reports a fault status if any issues are detected. |
13.11.3. Ports
Id |
Direction |
Data Type |
Dimensions |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
IsIg |
Incoming |
boolean |
[1] |
Ignition enable input flag (should be “true” for normal running) |
Is Ignition |
|
2 |
FlapPosnReq |
Incoming |
single |
[1] |
% |
Flap position request input signal |
Flap Position Request |
3 |
FlapPosnU |
Incoming |
single |
[1] |
V |
Flap position pin voltage value input signal |
Flap Position Voltage |
4 |
ActutFlapMotOpenCur |
Incoming |
single |
[1] |
A |
Flap motor open pin actual current input signal |
Actuate Flap Motor Open Current |
5 |
ActutFlapMotClsCur |
Incoming |
single |
[1] |
A |
Flap motor close pin actual current input signal |
Actuate Flap Motor Close Current |
6 |
ActutFlapMotClsBrdgCur |
Incoming |
single |
[1] |
A |
Flap motor bridge actual current input signal |
Actuate Flap Motor Close Bridge Current |
7 |
ActutFlapMotClsBrdgSts |
Incoming |
Enum: InpoutBrdgSts |
[1] |
Flap motor bridge actual status input signal |
Actuate Flap Motor Close Bridge Status |
|
8 |
ActFlapPosn |
Outgoing |
single |
[1] |
V |
Actual flap position pin voltage value output signal |
Actual Flap Position |
9 |
FlapCald |
Outgoing |
boolean |
[1] |
Flap callibrated output flag |
Flap Calibrated |
|
10 |
DoorOpenReq |
Outgoing |
boolean |
[1] |
Flap open request output signal |
Door Open Request |
|
11 |
DoorClsReq |
Outgoing |
boolean |
[1] |
Flap close request output signal |
Door Close Request |
|
12 |
OpenCircFlt |
Outgoing |
boolean |
[1] |
Open circuit flap fault output flag |
Open Circuit Fault |
|
13 |
ShoCircFlt |
Outgoing |
boolean |
[1] |
Short circuit flap fault output flag |
Short Circuit Fault |
|
14 |
URngFlt |
Outgoing |
boolean |
[1] |
Position pin voltage value out of range output fault flag |
Voltage Range Fault |
|
15 |
ActutFlapMotClsBrdgDuty |
Outgoing |
uint8 |
[1] |
% |
Actual flap bridge pin duty output signal |
Actuate Flap Motor Close Bridge Duty |
16 |
ActutFlapMotClsBrdgMod |
Outgoing |
Enum: InpoutBrdgMod |
[1] |
Actual flap bridge pin mode output signal |
Actuate Flap Motor Close Bridge Mode |
|
17 |
FlapPosnMod |
Outgoing |
Enum: InpoutPinMod |
[1] |
Flap position pin mode output signal |
Flap Position Mode |
|
18 |
FlapPosnPuMod |
Outgoing |
Enum: InpoutPinPuMod |
[1] |
Flap position pin pull mode output signal |
Flap Position Pull Mode |
|
19 |
ActutFlapMotOpenMod |
Outgoing |
Enum: InpoutPinMod |
[1] |
Flap motor open pin mode output signal |
Actuate Flap Motor Open Mode |
|
20 |
ActutFlapMotOpenPuMod |
Outgoing |
Enum: InpoutPinPuMod |
[1] |
Flap motor open pin pull mode output signal |
Actuate Flap Motor Open Pull Mode |
|
21 |
ActutFlapMotClsMod |
Outgoing |
Enum: InpoutPinMod |
[1] |
Flap motor close pin mode output signal |
Actuate Flap Motor Close Mode |
|
22 |
ActutFlapMotClsPuMod |
Outgoing |
Enum: InpoutPinPuMod |
[1] |
Flap motor close pin pull mode output signal |
Actuate Flap Motor Close Pull Mode |
13.11.4. Parameters
Id |
Data Type |
Dimensions |
Range |
Unit |
Description |
Keywords |
|
|---|---|---|---|---|---|---|---|
1 |
FlapsrdrBrdgOpenFwrd |
boolean |
[1,1] |
Min: 0, Max: 1 |
OPEN == FORWARD. For FACE DEFR |
Flapsrdr Bridge Open Forward |
|
2 |
FlapsrdrCalEnad |
boolean |
[1,1] |
Min: 0, Max: 1 |
Is Flap calibration enabled on start and ignition reset |
Flapsrdr Calibration Enabled |
|
3 |
FlapsrdrCalPosnToU |
single |
[1,2] |
Min: 0, Max: 12 |
V |
End position feedback voltage for opened and closed states |
Flapsrdr Calibration Position To Voltage |
4 |
FlapsrdrClsdCurMax |
single |
[1,1] |
Min: 0, Max: 100 |
A |
The maximum motor current allowed when driving the flap closed |
Flapsrdr Closed Current Maximum |
5 |
FlapsrdrClsdCurMin |
single |
[1,1] |
Min: 0, Max: 100 |
A |
The minimum motor current allowed when driving the flap closed |
Flapsrdr Closed Current Minimum |
6 |
FlapsrdrDbgFlap |
int8 |
[1,1] |
Min: , Max: |
If <-100 OR >100 then no debug, >0 - FORWARD, <0 - REVERSE, 0 - FREEWHEEL |
Flapsrdr Debug Flap |
|
7 |
FlapsrdrDbgFlapCmd |
int8 |
[1,1] |
Min: -1, Max: 3 |
-1 NO OVRIDE, 0 - NA, 1 - open, 2 - close, 3 - err |
Flapsrdr Debug Flap Command |
|
8 |
FlapsrdrDbgFlapModEna |
boolean |
[1,1] |
Min: 0, Max: 1 |
Debug Mode enable |
Flapsrdr Debug Flap Mode Enable |
|
9 |
FlapsrdrFlapCurMax |
single |
[1,1] |
Min: 0, Max: 30 |
A |
Flap current max |
Flapsrdr Flap Current Maximum |
10 |
FlapsrdrFlapCurMin |
single |
[1,1] |
Min: 0, Max: 30 |
A |
Flap current max |
Flapsrdr Flap Current Minimum |
11 |
FlapsrdrFlapFltDetnTi |
single |
[1,1] |
Min: 0, Max: 10 |
sec |
Flap fault detection time |
Flapsrdr Flap Fault Detection Time |
12 |
FlapsrdrFlapPosnArcy |
single |
[1,1] |
Min: 0, Max: 2 |
V |
Flap position accurcy |
Flapsrdr Flap Position Accuracy |
13 |
FlapsrdrFlapUMax |
single |
[1,1] |
Min: 0, Max: 16 |
V |
Flap volatge Max |
Flapsrdr Flap Voltage Maximum |
14 |
FlapsrdrFlapUMin |
single |
[1,1] |
Min: 0, Max: 16 |
V |
Flap volatge Min |
Flapsrdr Flap Voltage Minimum |
15 |
FlapsrdrFltQntyMax |
uint8 |
[1,1] |
Min: 1, Max: |
Max count flap |
Flapsrdr Fault Quantity Maximum |
|
16 |
FlapsrdrFltTiout |
single |
[1,1] |
Min: 0, Max: 100 |
sec |
Flap fault timeout |
Flapsrdr Fault Timeout |
17 |
FlapsrdrIvtOpenClsPin |
boolean |
[1,1] |
Min: 0, Max: 1 |
Invert open close PINs |
Flapsrdr Invert Open Close Pin |
|
18 |
FlapsrdrManCal |
boolean |
[1,1] |
Min: 0, Max: 1 |
True if the manual flap calibration used only |
Flapsrdr Manual Calibration |
|
19 |
FlapsrdrMotOverCur |
single |
[1,1] |
Min: 0, Max: 30 |
A |
Border current then we consider overcurrent |
Flapsrdr Motor Over Current |
20 |
FlapsrdrMoveTiout |
single |
[1,1] |
Min: 0, Max: 100 |
sec |
Flap move timeout |
Flapsrdr Move Timeout |
21 |
FlapsrdrNewMoveTiout |
single |
[1,1] |
Min: 0, Max: 10 |
sec |
Flap new move timeout |
Flapsrdr New Move Timeout |
22 |
FlapsrdrOpenCurMax |
single |
[1,1] |
Min: 0, Max: 100 |
A |
The maximum motor current allowed when driving the flap open |
Flapsrdr Open Current Maximum |
23 |
FlapsrdrOpenCurMin |
single |
[1,1] |
Min: 0, Max: 100 |
A |
The minimum motor current allowed when driving the flap open |
Flapsrdr Open Current Minimum |
24 |
FlapsrdrOverCurHldTiout |
single |
[1,1] |
Min: 0, Max: 100 |
sec |
Overcurrent timeout detection |
Flapsrdr Over Current Hold Timeout |
25 |
FlapsrdrOverCurTioutDet |
single |
[1,1] |
Min: 0, Max: 100 |
sec |
Overcurrent timeout detection |
Flapsrdr Over Current Timeout Detect |
26 |
FlapsrdrRstFlt |
boolean |
[1,1] |
Min: 0, Max: 1 |
Flap state det |
Flapsrdr Reset Fault |
|
27 |
FlapsrdrStDet |
boolean |
[1,1] |
Min: 0, Max: 1 |
Flap state det |
Flapsrdr State Detect |