Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the TS Library #27

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface SeqJson {
/**
* Immediate commands which are interpreted by FSW and not part of any sequence.
*/
immediate_commands?: ImmediateCommand[];
immediate_commands?: (ImmediateFswCommand | ImmediateLoad | ImmediateActivate)[];
/**
* Hardware commands which are not interpreted by FSW and not part of any sequence.
*/
Expand Down Expand Up @@ -370,14 +370,59 @@ export interface Load {
/**
* Object representing a single Immediate Command
*/
export interface ImmediateCommand {
export interface ImmediateFswCommand {
args: Args;
description?: Description;
metadata?: Metadata;
/**
* Command stem
*/
stem: string;
type?: 'command';
}
/**
* Untimed load object
*/
export interface ImmediateLoad {
args?: Args;
description?: Description;
/**
* Sequence target engine.
*/
engine?: number;
/**
* Onboard epoch to pass to the sequence for derivation of epoch-relative timetags
*/
epoch?: string;
metadata?: Metadata;
models?: Model[];
/**
* Onboard path and filename of sequence to be loaded.
*/
sequence: string;
type: 'load';
}
/**
* Untimed activate object
*/
export interface ImmediateActivate {
args?: Args;
description?: Description;
/**
* Sequence target engine.
*/
engine?: number;
/**
* Onboard epoch to pass to the sequence for derivation of epoch-relative timetags
*/
epoch?: string;
metadata?: Metadata;
models?: Model[];
/**
* Onboard path and filename of sequence to be loaded.
*/
sequence: string;
type: 'activate';
}
/**
* Object representing a single Hardware Command
Expand Down
Loading