Skip to content

Conversation

zjn0505
Copy link
Contributor

@zjn0505 zjn0505 commented May 13, 2025

Support goto with custom max speed from 0.1 to 1.5

Squashed commits:
[7c067e5] Support goto with custom max speed from 0.1 to 1.5
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for setting a custom max speed for the goto operation by extending the SpeedLevel enum and updating corresponding API methods to include a float speed parameter.

  • Updated SpeedLevel.kt to include a customSpeed() method and floatSpeedLevel property.
  • Modified Robot.kt and AIDL definitions to pass the custom float speed value for goto operations.
  • Updated sample code and version number.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/src/main/java/com/robotemi/sdk/navigation/model/SpeedLevel.kt Added customSpeed() function and floatSpeedLevel property to support custom speeds.
sdk/src/main/java/com/robotemi/sdk/Robot.kt Updated goto and goToPosition calls to include the custom float speed parameter.
sdk/src/main/aidl/com/robotemi/sdk/ISdkService.aidl Modified the goTo and goToPosition method signatures to add the new float parameter.
sample/src/main/java/com/robotemi/sdk/sample/TemiBroadcastReceiver.kt Updated sample commands to utilize the new custom speed functionality.
gradle.properties Bumped version number to reflect the new changes.

@zjn0505 zjn0505 changed the title Goto speed 0.1 1.5 Goto speed 0.1 to 1.5 May 13, 2025
@zjn0505

This comment was marked as resolved.

Copy link
Contributor

@John-Robocore John-Robocore left a comment

Choose a reason for hiding this comment

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

LGTM

@zjn0505 zjn0505 merged commit b4ccbb8 into dev_sprint_136 May 15, 2025
@zjn0505 zjn0505 deleted the sprint_136/goto_speed_0.1_1.5 branch May 15, 2025 03:09
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