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

51 temp monitor #58

Merged
merged 11 commits into from
Oct 15, 2023
Merged

51 temp monitor #58

merged 11 commits into from
Oct 15, 2023

Conversation

nwdepatie
Copy link
Contributor

@nwdepatie nwdepatie commented Sep 27, 2023

Here is a super quick implementation of a really really basic temperature monitor for #51. This goes through an example of defining an RTOS task, what it might look like, etc. There is a lot missing but I hope it helps demonstrate the general gist of what we should be doing.

Not currently tested but working on improving this in the coming days. TLDR I need to:

  • Figure out error handling
  • Actually pass the I2C bus
  • Adjust the LPF on the data (do we even need one? Is it already done in hardware?)
  • Figure out best method of making this data available to other processes
  • Mutexing the I2C bus
  • Implementing a CAN wrapper to push to a central CAN dispatch queue (another ticket)
  • Make this actually build lol

@nwdepatie
Copy link
Contributor Author

lmao I had to add a fault implementation for this, I like this way because we can trickle up diagnostic information per failure

@nwdepatie
Copy link
Contributor Author

Note that we need merge in this PR before such that it will build Northeastern-Electric-Racing/Embedded-Base#13

@nwdepatie nwdepatie merged commit ad37d09 into main Oct 15, 2023
1 check passed
@nwdepatie nwdepatie deleted the 51-temp-monitor branch October 15, 2023 21:44
nwdepatie added a commit that referenced this pull request Oct 15, 2023
* Defining temp sensor monitor RTOS task in monitor.c

* Preliminary faulting structure

* Adding a queue for passing temperature data to other tasks
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.

2 participants