Skip to content

Feature Request: Variable handling #82

@jngreene

Description

@jngreene

It would be very helpful, although I'm sure less than trivial.
The ability to set local or global variables such as

#Local Vars
  supercruise_state=true
  fuel_percent=90
#Global vars
  ~last_left_panel=2
  ~left_panel[2]=Transactions
  ~left_panel[3]=Contacts
  ~left_panel[1]=Navigation

This would also hopefully enable automatic variables like:

  command_text=$command_text
  command_segment1= $command_text[1]

where for instance the command name was

"[open,close] the [cargo,landing gear]"

and the matching string from vosk was "open landing gear" would result in:

command_text[0]= "open the landing gear" and 
command_text[1]="open"
command_text[2]="landing gear"

This could then allow conditional loops {if, while and loop} to become a viable option or even further commands like 'speak "$command_text[0]"' to hand off to a speech engine as part of an 'execute external script or external command'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions