Anthony Leonardo Gracio
8 years ago
6 changed files with 51 additions and 22 deletions
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
with Types; use Types; |
||||
|
||||
package MMS.F_EL.Behavior with SPARK_Mode is |
||||
|
||||
------------ |
||||
-- Inputs -- |
||||
------------ |
||||
|
||||
function P return Distance_Type with Global => Private_State; |
||||
|
||||
function P_Dot return Speed_Type with Global => Private_State; |
||||
|
||||
function Q return Angle_Type with Global => Private_State; |
||||
|
||||
---------------------- |
||||
-- Estimated Values -- |
||||
---------------------- |
||||
|
||||
function Q_Dot return Angular_Speed_Type with Global => Private_State; |
||||
|
||||
--------------------------------------- |
||||
-- Behavioural Specification of F_EL -- |
||||
--------------------------------------- |
||||
|
||||
procedure Read_Inputs with |
||||
-- Read values of inputs once and for all and update the current state |
||||
Global => (In_Out => Private_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); |
||||
|
||||
end MMS.F_EL.Behavior; |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
with Types; use Types; |
||||
|
||||
package MMS.F_EL.Data is |
||||
|
||||
--------------- |
||||
-- Constants -- |
||||
--------------- |
||||
|
||||
-- From 7.3.2 |
||||
|
||||
Max_Touch_Speed : constant := 0.5; -- in m.s |
||||
|
||||
end MMS.F_EL.Data; |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
private |
||||
package MMS.F_EL.State is |
||||
|
||||
end MMS.F_EL.State; |
Loading…
Reference in new issue