afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Improved flash saving handling #104

Open stenbergd opened 8 years ago

stenbergd commented 8 years ago

Perhaps make an improved way of saving data to flash using protobuf?

Format: [CRC][content-type][content-length][content-data]

And then just store each struct after one-another on the flash pages and iterate through until all setting types found OR no valid data after last found setting.

stenbergd commented 8 years ago

Perhaps reduce setting storage area to 8 or even 4 kB?

stenbergd commented 8 years ago

Need to handle flash page data separation. If data saved towards the end of the page and next data couldn't fit, store/search next page.