USSTRocketry / MiniRockets

Making rockets that hopefully go UP!
MIT License
2 stars 11 forks source link

Impl writing to FRAM #35

Closed frroossst closed 1 year ago

frroossst commented 1 year ago

Store FRAM read and write cursors on the FRAM itself when they are updated. This allows us to not loose data or overwrite important data

snowy-shadow commented 1 year ago

we won't need to do that if we can figure out a good layout to store the data. e.g. with a value table stored on the fram or a preregistered address for each variable. I still have doubts on how your initially proposed solution of interweaving the data could work

frroossst commented 1 year ago

This was something I saw on the cubesat codebase and thought it was neat.

Could you elaborate on what you mean by the interweaving data? If you're referring to the fancy way of trying to save space with floats then that wouldn't be a priority right now :)

frroossst commented 1 year ago

Initial code: https://github.com/USSTR-Avionics/Avionics_code/pull/51

frroossst commented 1 year ago

Code requires testing but everything is mainly there with this commit a5b916d6fb989be90598b35d11d0a04c3b80aae1