mawson-rovers / hestia

Hestia is a space-ready heater & temperature measurement system developed by Mawson Rovers in Sydney. Its first mission will demonstrate a novel UTS heatsink design, aboard the Waratah Seed cubesat mission. It is due to launch on a SpaceX rocket in July 2024.
MIT License
1 stars 1 forks source link

Implement programs for payload experiments on-orbit #50

Closed mryall-mawson closed 1 year ago

mryall-mawson commented 1 year ago

Create a new binary uts-run that does the following:

Also consider whether to implement temperature abort in firmware rather than software.

mryall-mawson commented 1 year ago

Tested and working on two boards. See dashboard screenshot below.

Screenshot 2023-07-18 at 2 33 02 pm

Configuration is deployed in ~/uts/uts-programs.toml on B4, and looks like this:

loop = false

[[programs]]
heat_board = "Bottom"
heat_time = "60s"
heat_duty = 1.0
temp_sensor = "TH1"
temp_abort = 90.0
thermostat = 80.0
cool_time = "1m 30s"

[[programs]]
heat_board = "Bottom"
heat_time = "30s"
heat_duty = 0.5
temp_sensor = "J7"
temp_abort = 60.0
cool_time = "60s"

[[programs]]
heat_board = "Top"
heat_time = "60s"
heat_duty = 1.0
temp_sensor = "TH1"
temp_abort = 90.0
thermostat = 80.0
cool_time = "1m 30s"

Currently programs can only be run from the command line. Configuring and running them via the web interface will be another task.