-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lighthouse: Allow to set system type at runtime #728
Conversation
System type (Lighthouse V1 or V2) can be set with a parameter. The new setting is stored in persistent storage and loaded on next statups. When changing types, the current configuration (geometry and calibration) is cleared from RAM. By default lighthouse V2 is used if no setting exists in storage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good, just some nits.
* @brief Fetch system type from storage and set it in ligthouseCore | ||
* | ||
*/ | ||
void lighthouseStorageInitializeSystemTypeFromStorage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing newline at end of file
if (fetched == typeSize) { | ||
lighthouseCoreSetSystemType(type); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing newline at eof
default: | ||
// Do nothing if the type is not in range, stay on the previous processor | ||
return; | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe remove the break;
? It might trigger unreachable code on some linters?
System type (Lighthouse V1 or V2) can be set with a parameter. The new
setting is stored in persistent storage and loaded on next statups.
When changing types, the current configuration (geometry and
calibration) is cleared from RAM.
By default lighthouse V2 is used if no setting exists in storage.