applied clang formatting
This commit is contained in:
@ -407,53 +407,37 @@ static const uint8_t FIRMWARE = 2;
|
||||
} // namespace Program
|
||||
|
||||
namespace region_secrets {
|
||||
static const uint32_t REGION_0_SECRET = 0xd1a220d3;
|
||||
static const uint32_t REGION_1_SECRET = 0xdc770fa8;
|
||||
static const uint32_t REGION_2_SECRET = 0xdf9066b0;
|
||||
static const uint32_t REGION_3_SECRET = 0x5f6a0423;
|
||||
static const uint32_t REGION_4_SECRET = 0xbbaad5d8;
|
||||
static const uint32_t REGION_5_SECRET = 0xa81c3678;
|
||||
static const uint32_t REGION_6_SECRET = 0xe10f76f8;
|
||||
static const uint32_t REGION_7_SECRET = 0x83220919;
|
||||
static const uint32_t REGION_8_SECRET = 0xec37289d;
|
||||
static const uint32_t REGION_9_SECRET = 0x27ac0ef8;
|
||||
static const uint32_t REGION_10_SECRET = 0xf017e43d;
|
||||
static const uint32_t REGION_11_SECRET = 0xbc7f7f49;
|
||||
static const uint32_t REGION_12_SECRET = 0x42fedef6;
|
||||
static const uint32_t REGION_13_SECRET = 0xe53cf10d;
|
||||
static const uint32_t REGION_14_SECRET = 0xe862b70b;
|
||||
static const uint32_t REGION_15_SECRET = 0x79b537ca;
|
||||
static const uint32_t secret[16] {
|
||||
REGION_0_SECRET,
|
||||
REGION_1_SECRET,
|
||||
REGION_2_SECRET,
|
||||
REGION_3_SECRET,
|
||||
REGION_4_SECRET,
|
||||
REGION_5_SECRET,
|
||||
REGION_6_SECRET,
|
||||
REGION_7_SECRET,
|
||||
REGION_8_SECRET,
|
||||
REGION_9_SECRET,
|
||||
REGION_10_SECRET,
|
||||
REGION_11_SECRET,
|
||||
REGION_12_SECRET,
|
||||
REGION_13_SECRET,
|
||||
REGION_14_SECRET,
|
||||
REGION_15_SECRET
|
||||
};
|
||||
}
|
||||
static const uint32_t REGION_0_SECRET = 0xd1a220d3;
|
||||
static const uint32_t REGION_1_SECRET = 0xdc770fa8;
|
||||
static const uint32_t REGION_2_SECRET = 0xdf9066b0;
|
||||
static const uint32_t REGION_3_SECRET = 0x5f6a0423;
|
||||
static const uint32_t REGION_4_SECRET = 0xbbaad5d8;
|
||||
static const uint32_t REGION_5_SECRET = 0xa81c3678;
|
||||
static const uint32_t REGION_6_SECRET = 0xe10f76f8;
|
||||
static const uint32_t REGION_7_SECRET = 0x83220919;
|
||||
static const uint32_t REGION_8_SECRET = 0xec37289d;
|
||||
static const uint32_t REGION_9_SECRET = 0x27ac0ef8;
|
||||
static const uint32_t REGION_10_SECRET = 0xf017e43d;
|
||||
static const uint32_t REGION_11_SECRET = 0xbc7f7f49;
|
||||
static const uint32_t REGION_12_SECRET = 0x42fedef6;
|
||||
static const uint32_t REGION_13_SECRET = 0xe53cf10d;
|
||||
static const uint32_t REGION_14_SECRET = 0xe862b70b;
|
||||
static const uint32_t REGION_15_SECRET = 0x79b537ca;
|
||||
static const uint32_t secret[16]{
|
||||
REGION_0_SECRET, REGION_1_SECRET, REGION_2_SECRET, REGION_3_SECRET,
|
||||
REGION_4_SECRET, REGION_5_SECRET, REGION_6_SECRET, REGION_7_SECRET,
|
||||
REGION_8_SECRET, REGION_9_SECRET, REGION_10_SECRET, REGION_11_SECRET,
|
||||
REGION_12_SECRET, REGION_13_SECRET, REGION_14_SECRET, REGION_15_SECRET};
|
||||
} // namespace region_secrets
|
||||
|
||||
enum class FlashSections: uint8_t {
|
||||
BOOTLOADER_SECTION = 0,
|
||||
MAIN_FIRMWARE_SECTION = 1,
|
||||
ARC_CONFIG_SECTION = 2
|
||||
enum class FlashSections : uint8_t {
|
||||
BOOTLOADER_SECTION = 0,
|
||||
MAIN_FIRMWARE_SECTION = 1,
|
||||
ARC_CONFIG_SECTION = 2
|
||||
};
|
||||
|
||||
// Flash region IDs of firmware partition
|
||||
enum class FirmwareRegions: uint32_t {
|
||||
FIRST = 1,
|
||||
LAST = 8
|
||||
};
|
||||
enum class FirmwareRegions : uint32_t { FIRST = 1, LAST = 8 };
|
||||
|
||||
static const uint32_t FLASH_REGION_SIZE = 0x20000;
|
||||
|
||||
@ -1292,8 +1276,10 @@ class MatchingSet : public StaticLocalDataSet<MATCHING_SET_ENTRIES> {
|
||||
|
||||
MatchingSet(object_id_t objectId) : StaticLocalDataSet(sid_t(objectId, MATCHING_SET_ID)) {}
|
||||
|
||||
lp_var_t<float> squaredDistanceLimit = lp_var_t<float>(sid.objectId, PoolIds::MATCHING_SQUARED_DISTANCE_LIMIT, this);
|
||||
lp_var_t<float> squaredShiftLimit = lp_var_t<float>(sid.objectId, PoolIds::MATCHING_SQUARED_SHIFT_LIMIT, this);
|
||||
lp_var_t<float> squaredDistanceLimit =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::MATCHING_SQUARED_DISTANCE_LIMIT, this);
|
||||
lp_var_t<float> squaredShiftLimit =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::MATCHING_SQUARED_SHIFT_LIMIT, this);
|
||||
|
||||
void printSet() {
|
||||
sif::info << "MatchingSet::printSet: squared distance limit: " << this->squaredDistanceLimit
|
||||
@ -1316,9 +1302,12 @@ class TrackingSet : public StaticLocalDataSet<TRACKING_SET_ENTRIES> {
|
||||
TrackingSet(object_id_t objectId) : StaticLocalDataSet(sid_t(objectId, TRACKING_SET_ID)) {}
|
||||
|
||||
lp_var_t<float> thinLimit = lp_var_t<float>(sid.objectId, PoolIds::TRACKING_THIN_LIMIT, this);
|
||||
lp_var_t<float> outlierThreshold = lp_var_t<float>(sid.objectId, PoolIds::TRACKING_OUTLIER_THRESHOLD, this);
|
||||
lp_var_t<float> outlierThresholdQuest = lp_var_t<float>(sid.objectId, PoolIds::TRACKING_OUTLIER_THRESHOLD_QUEST, this);
|
||||
lp_var_t<uint8_t> trackerChoice = lp_var_t<uint8_t>(sid.objectId, PoolIds::TRACKING_TRACKER_CHOICE, this);
|
||||
lp_var_t<float> outlierThreshold =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::TRACKING_OUTLIER_THRESHOLD, this);
|
||||
lp_var_t<float> outlierThresholdQuest =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::TRACKING_OUTLIER_THRESHOLD_QUEST, this);
|
||||
lp_var_t<uint8_t> trackerChoice =
|
||||
lp_var_t<uint8_t>(sid.objectId, PoolIds::TRACKING_TRACKER_CHOICE, this);
|
||||
|
||||
void printSet() {
|
||||
sif::info << "TrackingSet::printSet: thin limit: " << this->thinLimit << std::endl;
|
||||
@ -1375,8 +1364,7 @@ class AlgoSet : public StaticLocalDataSet<ALGO_SET_ENTRIES> {
|
||||
|
||||
AlgoSet(object_id_t objectId) : StaticLocalDataSet(sid_t(objectId, ALGO_SET_ID)) {}
|
||||
|
||||
lp_var_t<uint8_t> mode =
|
||||
lp_var_t<uint8_t>(sid.objectId, PoolIds::ALGO_MODE, this);
|
||||
lp_var_t<uint8_t> mode = lp_var_t<uint8_t>(sid.objectId, PoolIds::ALGO_MODE, this);
|
||||
lp_var_t<float> i2tMinConfidence =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::ALGO_I2T_MIN_CONFIDENCE, this);
|
||||
lp_var_t<uint8_t> i2tMinMatched =
|
||||
@ -1384,10 +1372,11 @@ class AlgoSet : public StaticLocalDataSet<ALGO_SET_ENTRIES> {
|
||||
lp_var_t<float> i2lMinConfidence =
|
||||
lp_var_t<float>(sid.objectId, PoolIds::ALGO_I2L_MIN_CONFIDENCE, this);
|
||||
lp_var_t<uint8_t> i2lMinMatched =
|
||||
lp_var_t<uint8_t>(sid.objectId, PoolIds::ALGO_I2L_MIN_MATCHED, this);
|
||||
lp_var_t<uint8_t>(sid.objectId, PoolIds::ALGO_I2L_MIN_MATCHED, this);
|
||||
|
||||
void printSet() {
|
||||
sif::info << "AlgoSet::printSet: mode: " << static_cast<unsigned int>(this->mode.value) << std::endl;
|
||||
sif::info << "AlgoSet::printSet: mode: " << static_cast<unsigned int>(this->mode.value)
|
||||
<< std::endl;
|
||||
sif::info << "AlgoSet::printSet: i2t min confidence: " << this->i2tMinConfidence << std::endl;
|
||||
sif::info << "AlgoSet::printSet: i2t min matched: "
|
||||
<< static_cast<unsigned int>(this->i2tMinMatched.value) << std::endl;
|
||||
@ -1506,16 +1495,12 @@ class DebugCameraSet : public StaticLocalDataSet<DEBUG_CAMERA_SET_ENTRIES> {
|
||||
// Size of dataset
|
||||
static const size_t SIZE = 8;
|
||||
|
||||
DebugCameraSet(HasLocalDataPoolIF* owner)
|
||||
: StaticLocalDataSet(owner, DEBUG_CAMERA_SET_ID) {}
|
||||
DebugCameraSet(HasLocalDataPoolIF* owner) : StaticLocalDataSet(owner, DEBUG_CAMERA_SET_ID) {}
|
||||
|
||||
lp_var_t<uint32_t> timing =
|
||||
lp_var_t<uint32_t>(sid.objectId, PoolIds::DEBUG_CAMERA_TIMING, this);
|
||||
lp_var_t<uint32_t> test =
|
||||
lp_var_t<uint32_t>(sid.objectId, PoolIds::DEBUG_CAMERA_TEST, this);
|
||||
lp_var_t<uint32_t> timing = lp_var_t<uint32_t>(sid.objectId, PoolIds::DEBUG_CAMERA_TIMING, this);
|
||||
lp_var_t<uint32_t> test = lp_var_t<uint32_t>(sid.objectId, PoolIds::DEBUG_CAMERA_TEST, this);
|
||||
|
||||
DebugCameraSet(object_id_t objectId)
|
||||
: StaticLocalDataSet(sid_t(objectId, DEBUG_CAMERA_SET_ID)) {}
|
||||
DebugCameraSet(object_id_t objectId) : StaticLocalDataSet(sid_t(objectId, DEBUG_CAMERA_SET_ID)) {}
|
||||
|
||||
void printSet() {
|
||||
sif::info << "DebugCameraSet::printSet: timing: " << this->timing << std::endl;
|
||||
|
Reference in New Issue
Block a user