Skip to content

metro: Re-enable ignition-flash, packrat, power, thermal - #2701

Open
jamesmunns wants to merge 1 commit into
masterfrom
james/seq-further-2
Open

jamesmunns wants to merge 1 commit into
masterfrom
james/seq-further-2

Conversation

@jamesmunns

Copy link
Copy Markdown
Contributor

...and enable some more features

@jamesmunns
jamesmunns requested a review from labbott September 18, 2026 14:03
@jamesmunns jamesmunns changed the title Re-enable ignition-flash, packrat, power, thermal metro: Re-enable ignition-flash, packrat, power, thermal Sep 18, 2026
@labbott
labbott force-pushed the labbott/metro_sequencer_hf branch from aefdf6a to cc5ec3a Compare September 18, 2026 16:23
Base automatically changed from labbott/metro_sequencer_hf to master September 18, 2026 16:37

@labbott labbott left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments but overall LGTM

Comment thread task/packrat/src/main.rs
#[cfg(feature = "cosmo")]
cosmo_bufs: cosmo::StaticBufs,
#[cfg(any(feature = "cosmo", feature = "metro"))]
sp5_bufs: cosmo_metro::StaticBufs,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I like sp5 here 👍

Comment on lines +97 to +100
#[cfg(feature = "cosmo")]
userlib::task_slot!(SEQUENCER, cosmo_seq);
#[cfg(feature = "metro")]
userlib::task_slot!(SEQUENCER, metro_seq);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels a little goofy to need both of these but maybe that's a refactoring task later?

Comment on lines +49 to +52
#[cfg(feature = "cosmo")]
const NUM_TMP451_SENSORS: usize = sensors::NUM_TMP451_TEMPERATURE_SENSORS;
#[cfg(feature = "metro")]
const NUM_TMP451_SENSORS: usize = 0;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a comment to explain this beyond "we sure did decide to not have any TMP451 sensors"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TMP451 on Cosmo is the T6 temperature sensor:

hubris/app/cosmo/base.toml

Lines 983 to 986 in f6e5849

device = "tmp451"
name = "t6"
sensors = { temperature = 1 }
description = "T6 temperature sensor"

So, this wouldn't be included on Metro as there's no T6.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhhh yeah that makes sense. It's just looks weird in the code here without that context.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a note about this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants