software development of the ef2000 flight control computers · page 1...
TRANSCRIPT
Page 1 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Development of theEF2000 Flight Control Computers
Dr. H. HeusingerEADS Deutschland GmbHMilitary Air Systems
Page 2 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Agenda
• Overview of Flight Control System
• Overview of Flight Control Computer
• Design Process– System Requirements
– Software Requirements
– Software Design
– Test
• Tools
Page 3 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
EF2000 Requirements
• high agility• carefree flying• automatic recovery• autopilot / autothrottle• failure tolerant• structural protection• easy maintenance
Goal: Achieve high survivability and mission reliability
Page 4 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Aerodynamic Control Surfaces
Page 5 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
EF2000 Flight Control System
Eurofighter Flight Control System
ADTAVSCCDLDECUFCCFCSIMUPSUSSICA
UCS
Air Data TransducersAvionic SystemCross Channel Data LinkDigital Engine Control UnitFlight Control ComputerFlight Control SystemInertial Measurement UnitPedal Sensor UnitStick Sensor and Interface Control AssemblyUtility Control System
List of Abbreviations
1
2
3
4
5
6
7
8
9
1011
12
1314
15
16
17
18
19
EngineL
EngineR
17PSU
17PSU
18ThrottleBoxes UCS-Bus STANAG 3838
AnalogWiring
16SSICA
AVS-Bus STANAG 3910
FCS-Bus STANAG 3838
19
15ADTs
14IMU 13
FCCs
CCDL
Hydraulic System
1
2
3
4
5
6
7
8
9
10
11
12
Primary Actuators
Secondary Actuators
I/B Flaperon R
I/B Flaperon L
O/B Flaperon R
O/B Flaperon L
Foreplane R
Foreplane L
Rudder
Airintake R
Airintake L
Leading Edge
Airbrake
Nose Wheel
DECUR
DECUL
L R
Preconditioned Power
Page 6 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Flight Control Computer
Page 7 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Flight Control Computer Architecture
Page 8 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Inter Processor Communication
ACTIO CL1AIR CL3CL2
T-Bus
IO
Sequ
ence
Bus
A
rbite
rCommonDatastore
Page 9 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
General FCS Requirements
• A single failure must not endanger the mission success
• A second failure must not generate a safety hazard
• All FCCs shall be interchangeable
• All FCCs shall generate the same actuator demands at all times (even with failures)
• There must be an instantaneous reaction to the pilot’s inputs
Page 10 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Interchangeable FCCs
Into which slot fits this FCC?
• FCCs must be interchangeable
• FCCs must have identical software
• FCS must verify the HW / SW standard
• FCC must take over stored data from others
Page 11 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Correction4Correction3Correction2
Generate Identical Actuator Demands
General Approach
Correction1
ADT4ADT3ADT2ADT1 CCDL
Sen
sor P
lane
Con
solid
atio
n
ControlLawsCCDL
Dem
and
Plan
eC
onso
lidat
ion
ActuatorLoopsActuator
Synchronized
Page 12 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Synchronisation
• Each FCC generates a master interrupt every 12.5 ms.• The FCC tries to keep the timer interrupts within 100 μs.
GeneralHousekeeping
Sen
d S
ync
Mar
ker A
Sync Window+/- 50 μs
Rec
eive
Syn
cB
Rec
eive
Syn
cC
Rec
eive
Syn
cD
Mas
ter R
eset
Adjust Timer:A = A- ¼(Σ(Times B/C/D received)
If Sync is lost then the Frame Number drivesthe adjustment
Page 13 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Channel Exclusion (part 1)
FCC1 FCC2
FCC3 FCC4
FCC2 detectsCCDL fail from FCC1due to missing checkword
FCC2 tells FCC4 that itcannot see FCC1 but all others; FCC4 assumesFCC1 transmitter faulty
Page 14 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Channel Exclusion (part 2)
FCC1 FCC2
FCC3 FCC4
FCC2 detectsCCDL fail from FCC1and FCC4
FCC2 tells FCC4 that itcan’t see FCC1 and FCC2;FCC4 assumes FCC2 receiver faulty and worksquadruplex
Page 15 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Channel Exclusion (part 3)
FCC1 FCC2
FCC3 FCC4
FCC2 detectsCCDL fail from all othersFCC2 isolates itself
FCC4 detects CCDLfail from FCC2
Page 16 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Design Process
SW RequirementsAnalysis
FCC AlgorithmsTiming Requirements
SW Top LevelDesign
Ada Package Descriptions:• Allocation to Processors• Scheduling of Tasks
SW DetailedDesign / Code
Ada / Assembler Code• Implementation of functions• Optimisations
Page 17 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Requirement (Example 1)
The actuator inner loop shall implement the following:
DisplacementTransducerAD Valve
Feedback
DemandLimiter
+
-
Current
ValveDemand
D A
FCC
Actuator
ValveMotor
Iteration Rate: 320 HzDelay from Valve Feedback to Motor Demand ≤ t1 ms
Page 18 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Requirement (Example 2)
The pilot’s inceptor demands shall flow through the system as:
Con
solid
atio
n
Arb
itrat
ion
Con
trol L
aw
Exe
cutio
n
Act
uato
r Out
eran
d In
ner L
oop
FCC
SSICA
RSSICA
Actuator
ValveMotor
Iteration Rates: 40 Hz; 160 Hz; 320 HzFastest Delay from SSICA/RSSICA to Motor Demand ≤ t2 ms
Page 19 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Top Level Design
• Define IO Sequence• Allocate the functions to the processors• Define the Ada Package Specifications• Define the communication between the
processors• Estimate the worst case run time, the program
store and the needed RAM for each module• Generate the schedulers for the modules
Tasks:
Page 20 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Top Level Design (IO Sequence)
Principle: Just in time is in time
Iteration Rate DDV Demand
Analog InputValve Position
Delay Req
Actuator Inner Loop
SSICA to Actuator
Bus
Mes
sage
Delay Req
CC
DL
Pilo
t Dm
d
CC
DL
Actu
ator
Dm
d
Engineering Judgement
Page 21 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Top Level Design (Communication)
COM
T-Bus
BufferToCom
AIR CL1
WaitAbsolute(t)BufferFromCom
Worst Case Time when BufferToCom is finished < t
Page 22 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
ACT
Software Top Level Design (Scheduling)
Functional Chain Workload (Excel Sheet)CL1IOwith Delay Requirement
without Delay Requirement
Itera
tion
Rat
e
Define the buffer modules now
Act Inner Loop640 Hz
1.25 Hz
SSICA to Act
CC
DL
CC
DL
Page 23 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Coding (Standard)
• SafeAda must be used– No tasking– No predefined exceptions– No pointers– No unchecked conversion– No recursive calls– etc.
• Assembler should not be used– runtime system– highly used components (e.g. voter / monitors, filters,
interpolations, etc.)– allocation of memory
Page 24 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Coding (Optimisations)
Waits can speed up the program!!
Access to COM slow:• slow T-Bus• 6 bus clashes
ACTIO CL1AIR CL3CL2
T-Bus
Bus
A
rbite
r
CommonDatastore IO
S
eque
nce
CL1
AIR
W Buf W Buf W Buf
W Buf W Buf
Time
Waits guarantee that at most 3 bus clashes occur
Page 25 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Coding (Run Time Analysis)
Linked Program
Count Clock Cycles for each proceduretaking into account:• branches• addressing modes• memory wait states• misalignment of data• parallelism between main- and coprocessor
CriticalDataflow Analyse Transport Delays
Page 26 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Coding (Hazard Analysis)
• Divide by zero Analysis• Overflow Analysis• Denormalisation Analysis• Memory Usage Analysis• Ada / Assembler Interface Analysis• Iteration Rate Analysis• Illegal Instruction Analysis• Recursion Analysis• Compiler Defect Analysis• etc.
Prove that no hazard is introduced due to the coding
Page 27 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Coding (Limited Change Capability)
small changeof source
small changeof linked program
Difference of Object Code drives regression test
We must be able to fix code and data in memory
Sometimes it’s better to move unchanged data rather than changed data
Changes of the runtime and data flow must be handled locally
Page 28 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Testing
Unit TestsVerify that each procedure implements the designgiven in Top Level / Detailed Design(Statement, Branch and MC/DC coverage on target)
Software Integration Tests
Verify that all calls to procedures are correct according to the Top Level / Detailed Design
Page 29 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Testing
Hardware / Software Integration TestsVerify that each software requirement is correctly implemented in the actual
Test Equipment•Bus Stimulation/Monitoring•Actuator Model•RS232 Commands•CCDL Substitution/Monitoring
FCC
•RS232 Interpreter•Flight Test Output
CCDLSubBox
Page 30 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Software Testing (Timing)
FCC
Signal Generator and Analyser
Analogue Input
Analogue Output
Page 31 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Tool Support
Generator for Schedulers
Schedulers
Buffer Modules
Spare Time
Functional Chains(inc. Iteration Rates)
WCRT Estimates
IO Sequence
Accuracies
Delay Requirements
Deadlines
Page 32 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems
Tool Support (Validated)
Worst Case Runtime Analysernew processor MPC 565cache enabledruntimes with parameters
Transport Delay Analysergraphical interface to data flow diagramsautomatic input of IO sequenceautomatic bus clash analysis
Page 33 K:\Presentation\SynchronousProgramming\Synchro2007.ppt
Military Air Systems