Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
RESSAC_Use_Case
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RESSAC
RESSAC_Use_Case
Commits
55df3d8c
Commit
55df3d8c
authored
Jun 27, 2017
by
Claire Dross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Layer2_MMS_SW_SPARK behavioural specification of F_FC
parent
bbcca90a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
242 additions
and
61 deletions
+242
-61
external.ads
UseCaseDevelopment/Layer2_MMS_SW_SPARK/external.ads
+15
-18
mms-f_pt-data.ads
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-data.ads
+7
-0
mms-f_pt-f_cm-output.ads
...eDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_cm-output.ads
+6
-5
mms-f_pt-f_fc-behavior-guarantees.adb
...Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior-guarantees.adb
+8
-0
mms-f_pt-f_fc-behavior-guarantees.ads
...Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior-guarantees.ads
+45
-0
mms-f_pt-f_fc-behavior.ads
...evelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior.ads
+125
-8
mms-f_pt-f_fc-data.ads
...aseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-data.ads
+3
-3
mms-f_pt-f_fc-input.ads
...seDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-input.ads
+1
-1
mms-f_pt-f_fc-output.ads
...eDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-output.ads
+10
-10
mms-f_pt-f_fc.ads
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc.ads
+4
-1
mms-f_pt-f_mm-behavior.ads
...evelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-behavior.ads
+0
-0
mms-f_pt-f_mm-input.ads
...seDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-input.ads
+1
-1
mms-f_pt-f_mm-output.ads
...eDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-output.ads
+11
-13
mms-f_pt-f_mm-state.ads
...seDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-state.ads
+4
-0
mms-f_pt-f_mm.ads
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm.ads
+2
-1
No files found.
UseCaseDevelopment/Layer2_MMS_SW_SPARK/external.ads
View file @
55df3d8c
with
Types
;
use
Types
;
with
Types
;
use
Types
;
package
External
with
Abstract_State
=>
package
External
with
Abstract_State
=>
(
State
with
External
=>
Async_Writers
)
is
((
From_GS
with
External
=>
Async_Writers
),
(
From_CP
with
External
=>
Async_Writers
),
(
From_P_P
with
External
=>
Async_Writers
))
is
------------------------------------------------------
------------------------------------------------------
--
Ground
-
based
Mission
Preparation
and
Supervision
--
--
Ground
-
based
Mission
Preparation
and
Supervision
--
...
@@ -11,23 +8,23 @@ package External with Abstract_State =>
...
@@ -11,23 +8,23 @@ package External with Abstract_State =>
function
Navigation_Parameters
return
Navigation_Parameters_Type
with
function
Navigation_Parameters
return
Navigation_Parameters_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_GS
;
Global
=>
State
;
function
Navigation_Mode
return
Navigation_Mode_Type
with
function
Navigation_Mode
return
Navigation_Mode_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_GS
;
Global
=>
State
;
function
Navigation_Option
return
Navigation_Option_Type
with
function
Navigation_Option
return
Navigation_Option_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_GS
;
Global
=>
State
;
function
Go
return
Boolean
with
function
Go
return
Boolean
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_GS
;
Global
=>
State
;
function
Emergency_Landing
return
Boolean
with
function
Emergency_Landing
return
Boolean
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_GS
;
Global
=>
State
;
--------------------------------------------------
--------------------------------------------------
--
AV
-
based
Mission
Preparation
(
Control
Panel
)
--
--
AV
-
based
Mission
Preparation
(
Control
Panel
)
--
...
@@ -35,27 +32,27 @@ package External with Abstract_State =>
...
@@ -35,27 +32,27 @@ package External with Abstract_State =>
function
On_OFF_Push_Button
return
Boolean
with
function
On_OFF_Push_Button
return
Boolean
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
function
Start_Push_Button
return
Boolean
with
function
Start_Push_Button
return
Boolean
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
function
Mode_Switch
return
Navigation_Mode_Type
with
function
Mode_Switch
return
Navigation_Mode_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
function
Bay_Switch
return
Bay_Switch_Type
with
function
Bay_Switch
return
Bay_Switch_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
function
Payload_Mass
return
Payload_Mass_Type
with
function
Payload_Mass
return
Payload_Mass_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
function
USB_Key
return
Navigation_Parameters_Type
with
function
USB_Key
return
Navigation_Parameters_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_CP
;
Global
=>
State
;
-------------------------
-------------------------
--
Physical
Parameters
--
--
Physical
Parameters
--
...
@@ -63,14 +60,14 @@ package External with Abstract_State =>
...
@@ -63,14 +60,14 @@ package External with Abstract_State =>
function
P
return
Distance_Type
with
function
P
return
Distance_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_P_P
;
Global
=>
State
;
function
P_Dot
return
Speed_Type
with
function
P_Dot
return
Speed_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_P_P
;
Global
=>
State
;
function
Q
return
Angle_Type
with
function
Q
return
Angle_Type
with
Volatile_Function
,
Volatile_Function
,
Global
=>
From_P_P
;
Global
=>
State
;
end
External
;
end
External
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-data.ads
0 → 100644
View file @
55df3d8c
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
Data
is
Payload_Mass_Grid
:
Payload_Mass_Grid_Type
(
1
..
10
);
--
???
bounds
end
MMS
.
F_PT
.
Data
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_cm-output.ads
View file @
55df3d8c
...
@@ -22,7 +22,7 @@ package MMS.F_PT.F_CM.Output is
...
@@ -22,7 +22,7 @@ package MMS.F_PT.F_CM.Output is
function CP_Displays return CP_Displays_Type is
function CP_Displays return CP_Displays_Type is
(CP_Displays_Type'
(CP_Displays_Type'
(
Ready
=>
True
,
--
This
register
is
not
loaded
at
increment
1
(
Ready
=>
True
,
--
This
register
is
not
loaded
at
increment
1
???
Cancelled
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Cancelled
,
Cancelled
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Cancelled
,
Complete
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Complete
,
Complete
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Complete
,
Aborted
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Aborted
,
Aborted
=>
MMS
.
F_PT
.
F_CM
.
Input
.
Mission_Aborted
,
...
@@ -89,7 +89,11 @@ package MMS.F_PT.F_CM.Output is
...
@@ -89,7 +89,11 @@ package MMS.F_PT.F_CM.Output is
function USB_Key return Navigation_Parameters_Type
function USB_Key return Navigation_Parameters_Type
renames MMS.F_PT.F_CM.Input.USB_Key;
renames MMS.F_PT.F_CM.Input.USB_Key;
function Payload_Mass_To_F_MM return Payload_Mass_Type
----------------------
-- To F_MM and F_FC --
----------------------
function Payload_Mass return Payload_Mass_Type
renames MMS.F_PT.F_CM.Input.Payload_Mass;
renames MMS.F_PT.F_CM.Input.Payload_Mass;
-------------
-------------
...
@@ -101,8 +105,5 @@ package MMS.F_PT.F_CM.Output is
...
@@ -101,8 +105,5 @@ package MMS.F_PT.F_CM.Output is
function P_Dot return Speed_Type renames MMS.F_PT.F_CM.Input.P_Dot;
function P_Dot return Speed_Type renames MMS.F_PT.F_CM.Input.P_Dot;
function Q return Angle_Type renames MMS.F_PT.F_CM.Input.Q;
function Q return Angle_Type renames MMS.F_PT.F_CM.Input.Q;
function Payload_Mass_To_F_FC return Payload_Mass_Type
renames MMS.F_PT.F_CM.Input.Payload_Mass;
end MMS.F_PT.F_CM.Output;
end MMS.F_PT.F_CM.Output;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior-guarantees.adb
0 → 100644
View file @
55df3d8c
package
body
MMS
.
F_PT
.
F_FC
.
Behavior
.
Guarantees
with
SPARK_Mode
is
procedure
Run
is
begin
MMS
.
F_PT
.
F_FC
.
Behavior
.
Run
;
end
Run
;
end
MMS
.
F_PT
.
F_FC
.
Behavior
.
Guarantees
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior-guarantees.ads
0 → 100644
View file @
55df3d8c
with
MMS
.
F_PT
.
F_FC
.
Data
;
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
F_FC
.
Behavior
.
Guarantees
with
SPARK_Mode
is
pragma
Unevaluated_Use_Of_Old
(
Allow
);
-----------------------------------
--
High
-
Level
Properties
on
F_FC
--
-----------------------------------
subtype
Propulsion_State_Type
is
Engine_State_Type
range
PROPULSION
..
WAITING_BRAK
;
subtype
Braking_State_Type
is
Engine_State_Type
range
BRAKING
..
WAITING_PROP
;
function
Engine_State_In_Braking
return
Boolean
is
(
Mission_State
=
RUNNING
and
then
Engine_State
in
Braking_State_Type
);
function
Engine_State_In_Propulsion
return
Boolean
is
(
Mission_State
=
RUNNING
and
then
Engine_State
in
Propulsion_State_Type
);
-----------------------------------
--
High
-
Level
Garantees
for
F_FC
--
-----------------------------------
procedure
Run
with
Post
=>
--
6.7.3.2
.
D
Propulsion
and
braking
torque
actions
are
in
mutual
--
exclusion
.
(
if
(
Engine_State_In_Propulsion
'Old and then Engine_State_In_Braking)
or else (Engine_State_In_Braking'
Old
and
then
Engine_State_In_Propulsion
)
then
Time_Since_Stopped
>
MMS
.
F_PT
.
F_FC
.
Data
.
Commutation_Duration
)
--
6.7.3.2
.
E
In
-
flight
mission
concellation
with
remaining
propulsion
--
capacity
implies
occurrence
of
safety
excapes
for
more
than
--
Escape_Time
seconds
.
and
then
(
if
Mission_State
=
ABORTED
and
then
Mission_State
'Old /= ABORTED
then Time_Since_In_Safety_Escape > MMS.F_PT.F_FC.Data.Escape_Time);
end MMS.F_PT.F_FC.Behavior.Guarantees;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-behavior.ads
View file @
55df3d8c
with
MMS
.
F_PT
.
F_FC
.
Data
;
with
MMS
.
F_PT
.
F_FC
.
Data
;
with
External
;
with
Types
;
use
Types
;
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
F_FC
.
Behavior
is
package
MMS
.
F_PT
.
F_FC
.
Behavior
with
SPARK_Mode
is
pragma
Unevaluated_Use_Of_Old
(
Allow
);
------------
------------
--
Inputs
--
--
Inputs
--
------------
------------
function
P
return
Distance_Type
;
function
P
return
Distance_Type
with
Global
=>
Private_State
;
function
P_Dot
return
Speed_Type
;
function
P_Dot
return
Speed_Type
with
Global
=>
Private_State
;
function
Q
return
Angle_Type
;
function
Q
return
Angle_Type
with
Global
=>
Private_State
;
function
Start_Take_Off
return
Boolean
with
Global
=>
Private_State
,
Pre
=>
Mission_State
=
INIT
;
function
Start_Landing
return
Boolean
with
Global
=>
Private_State
,
Pre
=>
Mission_State
=
RUNNING
;
----------------------
----------------------
--
Estimated
Values
--
--
Estimated
Values
--
----------------------
----------------------
function
Q_Dot
return
Angular_Speed_Type
;
function
Q_Dot
return
Angular_Speed_Type
with
Global
=>
Private_State
;
------------
------------
--
States
--
--
States
--
------------
------------
type
Mission_State_Type
is
(
INIT
,
RUNNING
,
ABORTED
,
COMPLETE
);
function
Mission_State
return
Mission_State_Type
with
Global
=>
Private_State
;
type
Phase_State_Type
is
(
CLIMB
,
CRUISE
,
DESCENT
);
type
Phase_State_Type
is
(
CLIMB
,
CRUISE
,
DESCENT
);
function
Phase_State
return
Phase_State_Type
;
function
Phase_State
return
Phase_State_Type
with
Global
=>
Private_State
,
Pre
=>
Mission_State
=
RUNNING
;
type
Engine_State_Type
is
(
PROPULSION
,
WAITING_BRAK
,
BRAKING
,
WAITING_PROP
);
function
Engine_State
return
Engine_State_Type
with
Global
=>
Private_State
,
Pre
=>
Mission_State
=
RUNNING
;
----------------
----------------
--
Properties
--
--
Properties
--
...
@@ -43,6 +66,100 @@ package MMS.F_PT.F_FC.Behavior is
...
@@ -43,6 +66,100 @@ package MMS.F_PT.F_FC.Behavior is
and
P_Dot
<
MMS
.
F_PT
.
F_FC
.
Data
.
Pdot_MaxCr
,
and
P_Dot
<
MMS
.
F_PT
.
F_FC
.
Data
.
Pdot_MaxCr
,
when
DESCENT
=>
when
DESCENT
=>
Q_Dot
in
MMS
.
F_PT
.
F_FC
.
Data
.
Qdot_MinDs
..
MMS
.
F_PT
.
F_FC
.
Data
.
Qdot_MaxDs
Q_Dot
in
MMS
.
F_PT
.
F_FC
.
Data
.
Qdot_MinDs
..
MMS
.
F_PT
.
F_FC
.
Data
.
Qdot_MaxDs
and
Q
<
MMS
.
F_PT
.
F_FC
.
Data
.
Q_MaxDs
);
and
Q
<
MMS
.
F_PT
.
F_FC
.
Data
.
Q_MaxDs
)
with
Pre
=>
Mission_State
=
RUNNING
;
function
Time_Since_In_Safety_Escape
return
Time_Type
with
Global
=>
Private_State
;
function
Fast_Evolving_Safety_Escape
return
Boolean
with
Global
=>
Private_State
;
function
Time_Since_Stopped
return
Time_Type
with
Global
=>
Private_State
,
Pre
=>
Mission_State
=
RUNNING
;
---------------------------------------
--
Behavioural
Specification
of
F_FC
--
---------------------------------------
procedure
Read_Inputs
with
--
Read
values
of
inputs
once
and
for
all
and
update
the
current
state
Global
=>
(
In_Out
=>
Private_State
,
Input
=>
External
.
State
);
procedure
Write_Outputs
with
--
Compute
values
of
outputs
from
the
current
state
Global
=>
(
Input
=>
Private_State
,
Output
=>
Output_State
);
procedure
Run
with
Global
=>
(
In_Out
=>
Private_State
),
Contract_Cases
=>
(
Mission_State
=
INIT
and
then
Start_Take_Off
=>
Mission_State
=
RUNNING
and
then
Engine_State
=
PROPULSION
,
Mission_State
=
INIT
and
then
not
Start_Take_Off
=>
Mission_State
=
INIT
,
Mission_State
=
RUNNING
and
then
Start_Landing
=>
Mission_State
=
COMPLETE
,
Mission_State
=
RUNNING
and
then
not
Start_Landing
=>
(
if
Time_Since_In_Safety_Escape
>
MMS
.
F_PT
.
F_FC
.
Data
.
Escape_Time
then
Mission_State
=
ABORTED
else
Mission_State
=
RUNNING
),
(
Mission_State
in
COMPLETE
|
ABORTED
)
=>
Mission_State
=
Mission_State
'Old),
Post =>
(if In_Safety_Envelope'
Old
then
Time_Since_In_Safety_Escape
=
0
else
Time_Since_In_Safety_Escape
>
Time_Since_In_Safety_Escape
'Old)
-- 6.7.4 Propulsion braking mutual exclusion
and then
(if Mission_State = RUNNING and then Mission_State'
Old
=
RUNNING
then
(
case
Engine_State
'Old is
when PROPULSION =>
(if Time_Since_In_Safety_Escape > MMS.F_PT.F_FC.Data.Hazard_Duration
or else Fast_Evolving_Safety_Escape
then Engine_State = WAITING_BRAK
and then Time_Since_Stopped = 0
else Engine_State = PROPULSION),
when BRAKING =>
(if In_Safety_Envelope
then Engine_State = WAITING_PROP
and then Time_Since_Stopped = 0
else Engine_State = BRAKING),
when WAITING_PROP =>
(if Time_Since_In_Safety_Escape > MMS.F_PT.F_FC.Data.Hazard_Duration
or else Fast_Evolving_Safety_Escape
then Engine_State = BRAKING
elsif Time_Since_Stopped > MMS.F_PT.F_FC.Data.Commutation_Duration
then Engine_State = PROPULSION
else Engine_State = WAITING_PROP
and then Time_Since_Stopped > Time_Since_Stopped'
Old
),
when
WAITING_BRAK
=>
(
if
In_Safety_Envelope
then
Engine_State
=
PROPULSION
elsif
Time_Since_Stopped
>
MMS
.
F_PT
.
F_FC
.
Data
.
Commutation_Duration
then
Engine_State
=
BRAKING
else
Engine_State
=
WAITING_BRAK
and
then
Time_Since_Stopped
>
Time_Since_Stopped
'Old)));
end MMS.F_PT.F_FC.Behavior;
end MMS.F_PT.F_FC.Behavior;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-data.ads
View file @
55df3d8c
...
@@ -58,12 +58,12 @@ package MMS.F_PT.F_FC.Data is
...
@@ -58,12 +58,12 @@ package MMS.F_PT.F_FC.Data is
Qdot_MaxDs : Angular_Speed_Type; -- in angle.s-1
Qdot_MaxDs : Angular_Speed_Type; -- in angle.s-1
Q_MaxDs : Angle_Type; -- in angle
Q_MaxDs : Angle_Type; -- in angle
Escape_Time :
Integer
; -- in s
Escape_Time :
Time_Type
; -- in s
-- From 6.7.4
-- From 6.7.4
Commutation_Duration :
Integer
; -- in s
Commutation_Duration :
Time_Type
; -- in s
Hazard_Duration :
Integer
; -- in s
Hazard_Duration :
Time_Type
; -- in s
Recovery_Speed : Integer; -- in m.s
Recovery_Speed : Integer; -- in m.s
...
...
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-input.ads
View file @
55df3d8c
...
@@ -19,7 +19,7 @@ package MMS.F_PT.F_FC.Input is
...
@@ -19,7 +19,7 @@ package MMS.F_PT.F_FC.Input is
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Q
;
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Q
;
function
Payload_Mass
return
Payload_Mass_Type
function
Payload_Mass
return
Payload_Mass_Type
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Payload_Mass
_To_F_FC
;
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Payload_Mass
;
---------------
---------------
--
From
F_MM
--
--
From
F_MM
--
...
...
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc-output.ads
View file @
55df3d8c
...
@@ -2,26 +2,26 @@ with Types; use Types;
...
@@ -2,26 +2,26 @@ with Types; use Types;
package
MMS
.
F_PT
.
F_FC
.
Output
is
package
MMS
.
F_PT
.
F_FC
.
Output
is
---------------------
-
---------------------
--
To
F_CM
and
F_EM
--
--
To
F_CM
or
F_EM
--
---------------------
-
---------------------
function
Propulsion_Torque
return
Torque_Type
;
function
Propulsion_Torque
return
Torque_Type
with
Global
=>
Output_State
;
function
Braking_Torque
return
Torque_Type
;
function
Braking_Torque
return
Torque_Type
with
Global
=>
Output_State
;
-------------
-------------
--
To
F_MM
--
--
To
F_MM
--
-------------
-------------
function
Mission_Abort
return
Boolean
;
--
???
not
listed
in
F_FC
outputs
function
Mission_Abort
return
Boolean
with
Global
=>
Output_State
;
--
???
not
listed
in
F_FC
outputs
function
Estimated_Total_Mass
return
Estimated_Total_Mass_Type
;
function
Estimated_Total_Mass
return
Estimated_Total_Mass_Type
with
Global
=>
Output_State
;
function
Current_Range
return
Current_Range_Type
;
function
Current_Range
return
Current_Range_Type
with
Global
=>
Output_State
;
function
Current_Speed
return
Current_Speed_Type
;
function
Current_Speed
return
Current_Speed_Type
with
Global
=>
Output_State
;
function
Current_Altitude
return
Current_Altitude_Type
;
function
Current_Altitude
return
Current_Altitude_Type
with
Global
=>
Output_State
;
end
MMS
.
F_PT
.
F_FC
.
Output
;
end
MMS
.
F_PT
.
F_FC
.
Output
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_fc.ads
View file @
55df3d8c
with
Types
;
use
Types
;
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
F_FC
is
package
MMS
.
F_PT
.
F_FC
with
Abstract_State
=>
(
Private_State
,
Output_State
)
is
pragma
Elaborate_Body
(
MMS
.
F_PT
.
F_FC
);
type
Flight_Cell_Center_Type
is
record
type
Flight_Cell_Center_Type
is
record
Speed
:
Current_Speed_Type
;
Speed
:
Current_Speed_Type
;
...
@@ -22,4 +23,6 @@ package MMS.F_PT.F_FC is
...
@@ -22,4 +23,6 @@ package MMS.F_PT.F_FC is
Ki
:
Gain_Type
;
Ki
:
Gain_Type
;
end
record
;
end
record
;
type
Time_Type
is
new
Integer
;
--
in
s
???
some
bounds
end
MMS
.
F_PT
.
F_FC
;
end
MMS
.
F_PT
.
F_FC
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-behavior.ads
View file @
55df3d8c
This diff is collapsed.
Click to expand it.
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-input.ads
View file @
55df3d8c
...
@@ -36,7 +36,7 @@ package MMS.F_PT.F_MM.Input is
...
@@ -36,7 +36,7 @@ package MMS.F_PT.F_MM.Input is
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Bay_Switch
;
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Bay_Switch
;
function
Payload_Mass
return
Payload_Mass_Type
function
Payload_Mass
return
Payload_Mass_Type
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Payload_Mass
_To_F_MM
;
renames
MMS
.
F_PT
.
F_CM
.
Output
.
Payload_Mass
;
function
USB_Key
return
Navigation_Parameters_Type
function
USB_Key
return
Navigation_Parameters_Type
renames
MMS
.
F_PT
.
F_CM
.
Output
.
USB_Key
;
renames
MMS
.
F_PT
.
F_CM
.
Output
.
USB_Key
;
...
...
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-output.ads
View file @
55df3d8c
with
Types
;
use
Types
;
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
F_MM
.
Output
with
package
MMS
.
F_PT
.
F_MM
.
Output
is
Abstract_State
=>
(
To_F_CM
,
To_F_EL
,
To_F_FC
)
is
-------------
-------------
--
To
F_CM
--
--
To
F_CM
--
-------------
-
-------------
function
Mission_Cancelled
return
Boolean
with
Global
=>
To_F_CM
;
function
Mission_Cancelled
return
Boolean
with
Global
=>
Output_State
;
function
Mission_Complete
return
Boolean
with
Global
=>
To_F_CM
;
function
Mission_Complete
return
Boolean
with
Global
=>
Output_State
;
function
Mission_Aborted
return
Boolean
with
Global
=>
To_F_CM
;
function
Mission_Aborted
return
Boolean
with
Global
=>
Output_State
;
-------------
-------------
--
To
F_EL
--
--
To
F_EL
--
--------------
--------------
function
Emergency_Landing
return
Boolean
with
Global
=>
To_F_EL
;
function
Emergency_Landing
return
Boolean
with
Global
=>
Output_State
;
-------------
-------------
--
To
F_FC
--
--
To
F_FC
--
-------------
-------------
function
Start_Take_Off
return
Boolean
with
Global
=>
To_F_FC
;
function
Start_Take_Off
return
Boolean
with
Global
=>
Output_State
;
function
Start_Landing
return
Boolean
with
Global
=>
To_F_FC
;
function
Start_Landing
return
Boolean
with
Global
=>
Output_State
;
function
Operating_Point
return
Operating_Point_Type
with
Global
=>
To_F_FC
;
function
Operating_Point
return
Operating_Point_Type
with
Global
=>
Output_State
;
function
Operating_Mode
return
Navigation_Option_Type
with
Global
=>
To_F_FC
;
function
Operating_Mode
return
Navigation_Option_Type
with
Global
=>
Output_State
;
function
Mission_Range
return
Current_Range_Type
with
Global
=>
To_F_FC
;
function
Mission_Range
return
Current_Range_Type
with
Global
=>
Output_State
;
--
???
which
distance
type
--
???
which
distance
type
end
MMS
.
F_PT
.
F_MM
.
Output
;
end
MMS
.
F_PT
.
F_MM
.
Output
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm-state.ads
0 → 100644
View file @
55df3d8c
private
package
MMS
.
F_PT
.
F_MM
.
State
is
V
:
Integer
with
Part_Of
=>
Private_State
;
end
MMS
.
F_PT
.
F_MM
.
State
;
UseCaseDevelopment/Layer2_MMS_SW_SPARK/mms-f_pt-f_mm.ads
View file @
55df3d8c
with
Types
;
use
Types
;
with
Types
;
use
Types
;
package
MMS
.
F_PT
.
F_MM
is
package
MMS
.
F_PT
.
F_MM
with
Abstract_State
=>
(
Private_State
,
Output_State
)
is
pragma
Elaborate_Body
(
MMS
.
F_PT
.
F_MM
);
type
Viability_Cell_Center_Type
is
record
type
Viability_Cell_Center_Type
is
record
Distance
:
Current_Range_Type
;
Distance
:
Current_Range_Type
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment