aerie icon indicating copy to clipboard operation
aerie copied to clipboard

Support globals in the Sequencing EDSL

Open camargo opened this issue 2 years ago • 1 comments

This should be done after https://github.com/NASA-AMMOS/aerie/issues/706 is complete, since #706 will flesh out the design as to how we will represent special values (i.e. locals, parameters) in the EDSL. Please see that issue first for a full explanation about what is going on here.

Users need to be able to specify global strings and output them as symbols in Seq JSON. Here is one proposal:

export default () =>
  Sequence.new({
    seqId: '',
    metadata: {},
    steps: [
      C.FSW_CMD_0({ arg0: globals.pressure  })
    ],
  });

The corresponding .seq.json:

{
  "id": "",
  "metadata": {},
  "steps": [
    {
      "args": [
        { "name": "arg0", "type": "symbol", "value": "pressure" },
      ],
      "stem": "FSW_CMD_0",
      "time": { "type": "COMMAND_COMPLETE" },
      "type": "command"
    }
  ]
}

camargo avatar Mar 02 '23 20:03 camargo

Should globals be defined at the mission level similar to how sequence metadata is defined at the mission level?

dyst5422 avatar Mar 06 '23 17:03 dyst5422