Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split pandaState into pandaState and peripheralState #196

Merged
merged 6 commits into from Oct 4, 2021
Merged

Conversation

pd0wm
Copy link
Contributor

@pd0wm pd0wm commented Sep 12, 2021

No description provided.

log.capnp Outdated Show resolved Hide resolved
@robbederks
Copy link
Contributor

Not really sure what you're trying to accomplish by splitting these out like this. Wouldn't it suffice to just do something like this:

masterPandaState :PandaState;
peripheralPandaStates :List(PandaState);

or even just

pandaStates :List(PandaState);

where the first entry will always be the internal one?

@pd0wm
Copy link
Contributor Author

pd0wm commented Sep 21, 2021

The goal is to split driving related tasks from what we hacked into the panda state to control the device. Think this is a good change regardless of multiple panda support.

It also makes the upcoming changes to boardd easier to reason about since you can have two different threads and you can pass the appropriate panda to each one.

log.capnp Outdated
@@ -393,6 +387,12 @@ struct PandaState @0xa7649e2575e4591e {
harnessStatus @21 :HarnessStatus;
heartbeatLost @22 :Bool;

voltageDEPRECATED @0 :UInt32;
Copy link
Contributor

Choose a reason for hiding this comment

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

deprecated fields usually go at the bottom

@pd0wm pd0wm merged commit 2881d47 into master Oct 4, 2021
@pd0wm pd0wm deleted the peripheral-state branch October 4, 2021 09:26
gwillmer added a commit to gwillmer/cereal that referenced this pull request Oct 7, 2021
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.

None yet

3 participants