Skip to content

Comments

Bugfix: default cruise speed not working#2158

Merged
ArturoManzoli merged 3 commits intobluerobotics:masterfrom
ArturoManzoli:fix-default-cruise-speed-bug
Oct 8, 2025
Merged

Bugfix: default cruise speed not working#2158
ArturoManzoli merged 3 commits intobluerobotics:masterfrom
ArturoManzoli:fix-default-cruise-speed-bug

Conversation

@ArturoManzoli
Copy link
Contributor

@ArturoManzoli ArturoManzoli commented Oct 1, 2025

Ensures default cruise speed, if different than 1 m/s, will take effect on the planned mission.

Closes #2157

{
type: MissionCommandType.MAVLINK_NAV_COMMAND,
command: MavCmd.MAV_CMD_DO_CHANGE_SPEED,
param1: 0,
Copy link
Member

Choose a reason for hiding this comment

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

Should that be 0 (air speed) or 1 (ground speed)?

I'm thinking that ground speed could be a better general default as it demands GPS, which is the one usually present, but I don't know if maybe using air speed makes it fallback to the EKF if GPS is not present or something like that.

@Williangalvani any idea?

Copy link
Contributor Author

@ArturoManzoli ArturoManzoli Oct 1, 2025

Choose a reason for hiding this comment

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

There will be more use cases for ground speed for now.
I agree to change param1 to 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@ArturoManzoli ArturoManzoli force-pushed the fix-default-cruise-speed-bug branch from e5b5ee1 to 8de6f79 Compare October 1, 2025 19:26
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl left a comment

Choose a reason for hiding this comment

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

If I change the cruise speed I'm constantly getting the upload stuck in the middle. Any idea what it could be?

image image

type: MissionCommandType.MAVLINK_NAV_COMMAND,
command: MavCmd.MAV_CMD_DO_CHANGE_SPEED,
param1: 1,
param2: defaultCruiseSpeed.value,
Copy link
Member

Choose a reason for hiding this comment

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

I believe the problem could be that we need to cast the defaultCruiseSpeed.value here to a number.

@rafaellehmkuhl
Copy link
Member

@ArturoManzoli it would be good to get this one merged as well, now that we are extending the boat capabilities in cockpit.

@ArturoManzoli
Copy link
Contributor Author

ArturoManzoli commented Oct 6, 2025

@ArturoManzoli it would be good to get this one merged as well, now that we are extending the boat capabilities in cockpit.

Agreed, almost done with it.
But I want to also test it on the water before setting it ready to review.

Tomorrow we have a test day

@ArturoManzoli ArturoManzoli force-pushed the fix-default-cruise-speed-bug branch from 8de6f79 to bdccd2c Compare October 6, 2025 19:56
@ArturoManzoli ArturoManzoli force-pushed the fix-default-cruise-speed-bug branch from bdccd2c to 0093ee8 Compare October 8, 2025 16:26
@ArturoManzoli
Copy link
Contributor Author

@ArturoManzoli it would be good to get this one merged as well, now that we are extending the boat capabilities in cockpit.

All tested and ready to review!

Also moved the cruise speed input to a place relative to the mission, not only the simple path or surveys

cruise_speed_input

Copy link
Member

@rafaellehmkuhl rafaellehmkuhl left a comment

Choose a reason for hiding this comment

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

Working!

@ArturoManzoli ArturoManzoli merged commit 7e2a6c1 into bluerobotics:master Oct 8, 2025
11 of 12 checks passed
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.

Changing the speed in the mission planning menu does nothing

2 participants