USSTRocketry / MiniRockets

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

Finished FRAM prototype #14

Closed snowy-shadow closed 2 years ago

snowy-shadow commented 2 years ago

I can explain the code to you next week if you want

snowy-shadow commented 2 years ago

also yes, the code is very jank

frroossst commented 2 years ago

Is this just the test for FRAM or code that wraps data for writing to the FRAM?

snowy-shadow commented 2 years ago

this is the prototype for writing and reading to the fram. it is not C compatible tho. It is fully c++. only f16 is implemented, but with some copy pasting, will be able to support f24, f32, f64 ... in the future.

still need testing, hoping to do it sometimes this week. can't really just test it also since I have the data split into 2 registers / words / buffer and involves accessing the FRAM API itself. so it might be easier to just write and read to the fram and see how it goes

frroossst commented 2 years ago

Next Saturday, I need to talk to you about the memory layout of floats, some floats can be made restrictive like temperature, as we don't need the full range there, perhaps for things like acceleration we'll utilise the full range of 32 bits. We need to narrow down what needs all 32 bits and what doesn't. For example, gyroscopic data wouldn't need the full 32 bits.