Closed snowy-shadow closed 2 years ago
also yes, the code is very jank
Is this just the test for FRAM or code that wraps data for writing to the FRAM?
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
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.
I can explain the code to you next week if you want