Northeastern-Electric-Racing / Cerberus

Our FreeRTOS-based vehicle control application
1 stars 0 forks source link

ADCs work again #129

Closed nwdepatie closed 6 months ago

nwdepatie commented 6 months ago

Changes

There was a bug where the new interface for retrieving ADC data was not actually returning anything. This PR fixes that

Notes

The main problem is that in the init function for the mpu struct, we were returning a 0, not the struct allocated. This resulted in a lot of weird behavior, specifically the adc read function immediately failing because it detected that the pointer was NULL

Test Cases