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

[RSDK-7214] set default mode #334

Merged
merged 5 commits into from
Apr 12, 2024
Merged

Conversation

JohnN193
Copy link
Collaborator

@JohnN193 JohnN193 commented Apr 4, 2024

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Apr 4, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 4, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 4, 2024
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 4, 2024
@JohnN193 JohnN193 requested review from a team and susmitaSanyal and removed request for a team April 4, 2024 21:53
Copy link

@susmitaSanyal susmitaSanyal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit

@@ -193,6 +193,9 @@ func New(
}

subAlgo := SubAlgo(svcConfig.ConfigParams["mode"])
if subAlgo == "" {
subAlgo = Dim2d
}
if subAlgo != Dim2d {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these if statements can be a switch case.

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Apr 5, 2024
@JohnN193 JohnN193 merged commit ee4ea28 into viam-modules:main Apr 12, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants