I am trying to make APM change its cruise speed at a specific altitude in RTL mode. I am no programming expert and was trying to put an IF statement in one of the loops but it doesnt seem to be working, if somebodey could point me in the right direction it would be appreciated
You need to be a member of diydrones to add comments!
Replies
I ran across this code
It would work perfect for me because i can adjust the land speed. I just dont know where the code goes, the mission planner is the only way i know how to add waypoints and it doesnt give all the land options. help here?
im using a non-powered glider i want to use the cruise speed to differentiate between landing and steep gliding
Just had a thought, what is your throttle cruise set to?
I haven't had a chance to look at the code to see how they relate, but if you are trying to go faster and you have the throttle cruise set low, it won't speed up I don't think.
Hi Anthony
Let me know how you get on this, I'm planning on doing quite a bit of work on speeds in the code and haven't had a chance to look at it yet, so if you find something useful it would be good to post your results and any code examples.
I'd like to automatically calculate optimal cruise speed and have it automatically change during flight.