From Mission Control to Flight Software
Leading six developers on PRESET's ground systems and building embedded flight software for McMaster's CubeSat mission.
Published
Updated
The mission
PRESET is the McMaster Interdisciplinary Satellite Team's cubesat mission. A satellite is only half the problem — the other half is everything on the ground: the software that plans a pass, issues commands, stores telemetry, and tells an operator whether what just came down is normal.
Since September 2023, I have worked with the team as Mission Operations Team Lead and Flight Software Developer. I lead six developers building the ground systems and also develop software for the spacecraft's onboard computer.
What we built
A command scheduler. Passes are short and they do not wait. The scheduler lets an operator queue timed commands ahead of a window, reducing manual work during a pass.
Standardized schemas. Telemetry is only useful if every subsystem agrees on what a field means. We defined shared schemas and backends across the team so payload, ADCS, and power data land in the same shape, and so a downstream chart cannot silently misread a packet.
Role-based access. Not everyone on a student team should be able to send a command to a spacecraft. Authentication runs through Keycloak with OAuth2, with roles separating people who can look from people who can act.
Custom visualizations. Off-the-shelf dashboards get you part of the way. Time-series telemetry lives in InfluxDB and surfaces through Grafana, with purpose-built views in the app for the things a generic panel handles badly — pass windows, command state, and link health.
Onboard software and communications
On the spacecraft side, I develop C flight software for an STM32 onboard computer running FreeRTOS. The communications work includes UHF/VHF telemetry, tracking, and command (TT&C), connecting the spacecraft to the ground systems the team is building.
The stack
Next.js and React with server-side rendering on the front end; MongoDB, InfluxDB, and Grafana for data storage and visualization; and Keycloak with OAuth2 for role-based access. The interface uses Tailwind and HTML.
Across the ground and communications software, I work with TCP/IP, TLS, WebSocket, and AX.25, alongside unit testing and secure data-access roles.
Working with the CSA
Part of the work is technical and part of it is explaining the technical work. We have presented the architecture to the Canadian Space Agency, and I handle onboarding for new members of the software team — which, on a student team where people graduate, is its own kind of system design.