Skip to content
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

Merged
merged 4 commits into from
Mar 11, 2021

Conversation

ataffanel
Copy link
Member

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.

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.
Copy link
Contributor

@jonasdn jonasdn left a 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();
Copy link
Contributor

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);
}
}
Copy link
Contributor

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;
Copy link
Contributor

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?

@ataffanel ataffanel marked this pull request as ready for review March 11, 2021 17:35
@krichardsson krichardsson merged commit 347e630 into master Mar 11, 2021
@krichardsson krichardsson deleted the dev-lighthouse_save_systemtype branch March 11, 2021 17:52
@jonasdn jonasdn added this to the next-release milestone Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants