Open MarcBehrens opened 9 years ago
@BenjaminBeichler @T12z yould you please detail on your design decisions for REAL type variables listing all use cases.
Sorry for the delayed response Marc,
we do have the SDM_Types_Pkg that centrally defines the types we use within Supervision. The basic types that map to real are:
The basic decisions that led to this:
Having said that, I am also aware of:
On a last 50ct, with the Scade version we are using, no types are strongly typed. When I compiled for nanoETCS I had to keep in mind that int is only guaranteed to have 16bit by C standards.
(groooming "my" issues) Issue-alive-check / update: @MarcBehrens What is the goal of this issue? What needs to be done to finalize this? Who is assigned?
As an updated information on SDM, when possible, I have started to refactor / clean away floats where they do not make a difference. (e.g. SDM_Commands - the SDM decision / output module, relating to SRS 26 / 3.13.10) The lambda-brake model has been done without ints where possible. Unfortunately there are basic types that have needlessly been defined real. I already had discussions on that but there was no action feedback to clean it up. see: #719 #794 I may need to enforce some cleaning ...
Dear developers,
since there are currently some restrictions in the usage of REAL typed variables in the railway sector, I would like to invite you to list here the use cases of the variabel you want to have typed REAL in order to clarify what the rationale is behind it.