Making a simple photo survey mission with the Mission Planner Auto WP tool, (the first I’ve made in quite a while) I noticed that the DO_CHANGE_SPEED command (MavLink 178) has a new parameter - “type.”
What does the copter firmware do when it sees a value of “1” for this parameter?
There was a bug with the DO_CHANGE_SPEED command that required a work-around - it had to be placed after a waypoint to take effect. Has this been fixed?
TAKEOFF command (MavLink 22) also has a similar first parameter - “pitch.” The Mission Planner Auto WP for survey maps puts a value of “20” in this first parameter - and it appears to be ignored. The description of the MavLink commands suggests that this command (or how it’s processed) is ignored if no airspeed sensor is present. I’m not sure how the copter firmware handles it - but it appears to ignore it. If so - it’s possible that copter ignores “type” for DO_CHANGE_SPEED as well.
If someone knows off hand - it would be nice to have more information about this. I know it’s a chore to peak at the code to find out, but if that’s necessary, I’d really appreciate the effort.
I just run the scenarios in the Simulator and figure out what it does if I don’t know.
It uses Groundspeed from GPS I suppose as there is no other speed sensor. 0 and 1 in the Type field produce the same result.
I have never used a DO_CHANGE_SPEED command before any waypoints but one placed after the Takeoff command and before the 1st Waypoint did not change speed from the default set by WPNAV_SPEED.
If you Plan a Mission from Copter then there is no Pitch Angle field. Only when planning from Plane will that be available.
I didn’t see a fix in the release notes, but there was a problem a release or two ago with do_speed_change. The work around was to put it after a waypoint. I’ve reached out about this - just to find out. But if I need to stay with the work around, it’s not too much of a problem.
Yea, I tried that and it didn’t work. I always place a Waypoint for a speed change. For the initial mission speed I typically use WP Speed on a Tune pot. You can adjust the speed that way for the entire Mission if you are within RC Range.