oresat / oresat-firmware

OreSat firmware based on ChibiOS for M0 and M4 microcontrollers
GNU General Public License v3.0
36 stars 13 forks source link

Solar board work enables temperature readings #43

Closed tedhavelka closed 2 years ago

tedhavelka commented 3 years ago

This pull request brings in a new simple sensor driver for the Oresat solar board's temperature sensors, part TMP101AN. The driver code is based on the ina226.[ch] driver files. A new worker_t thread has been created, modeled after the app_blinky.[ch] example code in oresat-firmware/src/f0/app_solar/source.

There may be some Oresat coding standards missed in this first pull request by Ted H. Also, the temperature sensor config register and its bit-wise flags are defined in tmp101an.h, but are not yet put to use as default settings provide a proof of functioning sensors. One shot measurement mode to be implemented for low power purposes in a future pull request.

heliochronix commented 3 years ago

Hello,

I'm going to push a merge with the latest solar_dev and some file organization changes in preparation for a code review. Then I'll start going through things and performing a review.

tedhavelka commented 3 years ago

Addressed and made changes, corrections per the requests by Heliochronix. Requesting a review of this amended code.