Void Sentry
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
cal_store.h File Reference

Persists the aim calibration (an aiming::AimMap) in NVS. More...

#include "aim_map.h"

Go to the source code of this file.

Functions

bool cal_store::load (aiming::AimMap &out)
 Loads the saved calibration from NVS (namespace "aim", key "map").
 
bool cal_store::save (const aiming::AimMap &map)
 Saves the calibration to NVS (namespace "aim", key "map").
 

Detailed Description

Persists the aim calibration (an aiming::AimMap) in NVS.

Function Documentation

◆ load()

bool cal_store::load ( aiming::AimMap & out)

Loads the saved calibration from NVS (namespace "aim", key "map").

Parameters
outReceives the map when the stored blob is present, the right size and passes its CRC.
Returns
true if a valid map was loaded; false leaves out untouched (caller keeps the default map).

◆ save()

bool cal_store::save ( const aiming::AimMap & map)

Saves the calibration to NVS (namespace "aim", key "map").

Returns
true if the whole blob was written.