DelfiSpace / DelfiPQcore

0 stars 1 forks source link

Readout MCU temperature #27

Closed StefanoSperetta closed 4 years ago

StefanoSperetta commented 4 years ago

The MSP can use the ADC to readout the MCU temperature. There is also a calibration table which is holding device-specific parameters.

CasperBroekhuizen commented 4 years ago

I am assuming this is according to the example code provided on the resource explorer? http://dev.ti.com/tirex/explore/node?node=AHKzWRRAPjba2EbmE6owSg__z-lQYNj__LATEST

Also, I think this could be implemented in the HWMonitor object (issue https://github.com/DelfiSpace/DelfiPQcore/issues/24)?

CasperBroekhuizen commented 4 years ago

https://github.com/DelfiSpace/DelfiPQcore/commits/HWMonitor implements a readMCUTemp function, which will get a result using the ADC14 Module, this result can be accessed using getMCUTemp()

The EPS Has a HWMonitor branch to test functionality. https://github.com/DelfiSpace/EPS_FlightSoftware/tree/HWMonitor

StefanoSperetta commented 4 years ago

This looks working rather well. @Sevket: did we see discrepancy during the solar panel tests? Otherwise, I think we can close this.

StefanoSperetta commented 4 years ago

Seems like the temperature is within 2degC of the battery and solar panel temperature, so I consider it correct.

Closing the issue...