You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help speed up development of Houston when there's no OBC around, it's worth having a simple simulator that can be invoked instead of connecting the OBC.
The simulator has been hooked up and can be chosen as an input source. Here's how to set it up:
At the top right of the screen, click settings
In the first section, set the UART Port to Internal Simulator
Close the settings tab (it takes a couple of seconds to close - this is a bug that will be fixed)
Your python console is probably filled with errors. This is expected.
Quit Houston ... I know it's awkward, this is another bug
Open Houston again, you shouldn't see connection errors in the console
In the first tab, send an ack command. If everything's good, the simulator will send back Ack!
Now that you have the simulator running, here's what needs to be done.
Familiarize yourself with simulator.py and line 108-ish of houston.py - this is the simulator class itself and its connection to Houston
A good starting point is to add the standard telemetry sending function (see the bottom of simulator.py for details). This will use some python basics like random, time, and class variables.
Standard telemetry making it to Houston? Sweet, maybe add the ability for the simulator class to keep track of its state, just like the real OBC does. There's a comment about this near the top of simulator.py.
We probably don't want to go too crazy with adding features to the simulator. It's really meant for development convenience, not as a complete model for the OBC ... yet.
To help speed up development of Houston when there's no OBC around, it's worth having a simple simulator that can be invoked instead of connecting the OBC.
The simulator has been hooked up and can be chosen as an input source. Here's how to set it up:
Internal Simulator
ack
command. If everything's good, the simulator will send backAck!
Now that you have the simulator running, here's what needs to be done.
simulator.py
and line 108-ish ofhouston.py
- this is the simulator class itself and its connection to Houstonsimulator.py
for details). This will use some python basics likerandom
,time
, and class variables.simulator.py
.The commands we can send to the OBC are set in sfusat/sfu_cmds.c and .h. Some are listed here too: https://docs.google.com/spreadsheets/d/1z9gu1rPokRtKCMoUVm__WJPZM8pS671SBS4NHn9CfbM/edit#gid=0 - I'll try to update the spreadsheet with more commands so it's actually useful.
The text was updated successfully, but these errors were encountered: