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

Re-enable MCU temperature/vref sensing #100

Open
ThirteenFish opened this issue Jul 11, 2024 · 0 comments
Open

Re-enable MCU temperature/vref sensing #100

ThirteenFish opened this issue Jul 11, 2024 · 0 comments

Comments

@ThirteenFish
Copy link
Contributor

Our F0s are capable of measuring internal temperature and vref using the ADC. See the STM32F0 Reference Manual RM0091 section 13.8. These were intended to be measured on all our cards and reported via CANopen record 0x3003 ('system'). This was mostly implemented in sensors.c but for unknown reasons it was disabled in 37a6365. Regardless, as implemented it conflicts with other ADC users, namely the ADCS and diode card projects, so part of re-enabling will require a bit of rethink on how to share the ADC. As a personal preference I'd probably prefer a bit of boiler plate by separating it out from oresat_init()/oresat_start() but that would depend on how easy the fix is.

As part of this ticket there should be some kind of test or documentation (possibly making use of oresat-configs pdo?) to verify that the system sensor reporting works on all cards, as reported by CANopen. There's currently no automated suite setup for running on real hardware but it should be a consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant