Prelaunch/Terminal: Handle invalid commands gracefully

Open
#286 4 comments 0 reactions 1 assignee View on GitHub

@DanielB-2 is already working on this.

Since Sep 8, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement good first issue

Version: Affects all versions, fix version v2.7.0.

Describe the feature you'd like
Right now, our terminal interface throws a fail-fast error on an invalid command. We should consider doing more graceful handling that gives a sign that something went wrong but then continues execution.

Describe alternatives you've considered
N/A

Additional context
Could be a decent early issue. Implementation would be to implement a new static "invalid subcommand" function that turns the LED red and beeps a couple times (or something), and then returns to the terminal loop.

True hardware errors should remain fail-fast e.g. a flash write fail.

You may need to add a status to the status enum for these "invalid subcommand" errors for modules that implement their own subcommand handler internally.

Consider flushing the USB buffer when this is hit.

Points of Contact
FC Rev. 2 Project Lead: @NArmistead

Dominant language
C
Stars
8
Forks
6
Avg merge
6d 15h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SunDevilRocketry/Flight-Computer-Firmware

All issues in SunDevilRocketry/Flight-Computer-Firmware

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.