Guys I found a problem with using the change speed command. Basically I noticed that after the do change command is executed the next waypoint's altitude is selected. But continues to the previos (correct) lay long. I found this while testing auto land. Anyone else have this problem?
You need to be a member of diydrones to add comments!
LP - I am looking at this now and seeing some bad behavior, but can you please clarify what you mean by "I checked the commanded altitudes by selecting the way points while the plane was on the ground, they all come up wrong". How did you check the commanded altitudes and what were they relative to what they should have been and the values in the do_change_speed command?
I have tested this some more, the plane follows perfect with out the Do change. Then I add the do change, the first attempt is great, but when I press restart mission, the second time through the course the last few way points are below the ground.
I used this flight plan. The aircraft flew to waypoint 3 at 20 m. I checked the commanded altitudes by selecting the way points while the plane was on the ground, they all come up wrong. When you remove the do change speed commands the plane flies perfect.
Replies
test] waypoints
Hold altitude of 100m8 waypointsHit radius: 30Loiter radius: 45
command #: 0 id:0 options:0 p1:0 p2:1500 p3:287913216 p4:-812118592 command #: 1 id:22 options:1 p1:20 p2:5000 p3:0 p4:0 command #: 2 id:16 options:1 p1:0 p2:10000 p3:287926688 p4:-812101504 command #: 3 id:178 options:0 p1:0 p2:18 p3:55 p4:0 command #: 4 id:16 options:0 p1:0 p2:10000 p3:287912160 p4:-812099328 command #: 5 id:178 options:0 p1:0 p2:10 p3:15 p4:0 command #: 6 id:16 options:0 p1:0 p2:10000 p3:287909888 p4:-812117824 command #: 7 id:16 options:0 p1:0 p2:10000 p3:287912384 p4:-812140096 command #: 8 id:16 options:0 p1:0 p2:10000 p3:287927584 p4:-812139328 test]
This is from the CLI Test with a similar mission to the video, the waypoints are not quite the same. I did not save last time.
I used this flight plan. The aircraft flew to waypoint 3 at 20 m. I checked the commanded altitudes by selecting the way points while the plane was on the ground, they all come up wrong. When you remove the do change speed commands the plane flies perfect.
I have no log for the flight... tomorrow.
flew to wp3 at 20m.h