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-8812: Add frame_rate to flutter sdk #261

Merged
merged 8 commits into from
Sep 25, 2024

Conversation

jckras
Copy link
Member

@jckras jckras commented Sep 19, 2024

  • added support for frame_rate by returning it in getProperties in service.dart
  • added a test in camera_test.dart to test for setting vs not setting frame_rate

@jckras jckras changed the title Add frame_rate to flutter sdk RSDK-8812: Add frame_rate to flutter sdk Sep 20, 2024
@jckras jckras marked this pull request as ready for review September 23, 2024 15:36
@jckras jckras requested a review from a team as a code owner September 23, 2024 15:36
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

All the tests actually become redundant and you can undo all your changes since we're simply returning the properties values as is.

Comment on lines 54 to 61
return GetPropertiesResponse()
final response = GetPropertiesResponse()
..supportsPcd = properties.supportsPcd
..intrinsicParameters = properties.intrinsicParameters
..distortionParameters = properties.distortionParameters;
if (properties.frameRate != 0) {
response.frameRate = properties.frameRate;
}
return response;
Copy link
Member

Choose a reason for hiding this comment

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

All of these can actually be deleted and all you have to do is return properties, since properties is a typealias for GetPropertiesResponse.

@jckras jckras requested a review from njooma September 25, 2024 18:37
@jckras jckras merged commit a9fdd27 into viamrobotics:main Sep 25, 2024
4 checks passed
@jckras jckras deleted the flutter_sdk_changes branch September 26, 2024 13:48
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.

2 participants