Erratic launch after land on slope

If the craft lands on a slope, then is placed on level ground prior to the next launch, it will tilt to the angle of the slope that it had landed on previously.

Here is a test where we did the following:

  1. Launch and land from level ground.
  2. Launch from level ground and land on slope
  3. Place the craft back on level ground and launch again.

Here is a graph of the roll axis of the craft. For the first flight it lands at pretty much the same angle it took off from (level launch, level land). On the second flight the roll angle at landing was tilted over (roughly 10 degrees) because it landed on a slope. Then the craft was placed back on level ground (you can see this on the roll axis).

When it took off again, it immediately tries to achieve the roll angle that it had during the previous landing. Then pretty quickly corrects itself.

I only graphed roll - but desired roll was pretty much the same.

Any ideas?

Here is the log file:

1 Like

Access required for that google link.

Which flight mode was this?

No, it doesn’t remember any landing angle. The controller will keep it level as long as your stick is centered. I see you are flying in stabilize so it could be you. Try take off in loiter and low wind and see how it goes. When you arm to take off do it quickly. If you are running the motors up gradually and sitting on a slope the controller cam build an large integral because it’s trying to be level and it can’t because its not flying yet.

1 Like

Thank you for the response.

Sorry about the link - I think I have that fixed now - here it is again:

https://drive.google.com/file/d/15PoMWrOyfbh_Gag-DhaWPGxSI9ziru_f/

This is in Guided mode. The craft is being issued a MAV_CMD_NAV_TAKEOFF message to launch.

Thanks for the response - I appreciate the help.

The craft is not being flown in stabilize. It is being flown in guided. When the craft lands, it is switched into stabilize to get it out of land mode prior to being put back into stabilize. So it isn’t the stick - there is no stick involved in this.

Something is definitely being remembered from the landing to takeoff. It looks like possibly an integral value on a PID or perhaps a setpoint. I can cause it to happen regularly.

Here are the important points:

  1. I always take off from level ground.

  2. If the previous landing was on level ground, the takeoff is fine.

  3. If the previous landing was on a slope, the craft is then moved to level ground prior to launch. However, when it launches, it immediately goes to the angle of the slope that it landed on previously - then comes back to level.

Keep in mind that it is not launching from the slope - it was moved from the slope to the level ground after it landed - but it still tries to go to the last angle it had during the previous landing.

Thanks again for the assistance.

I’ll try to test this today with copter 3.5.7 and TX/RX - we dont have ground station control and guided mode though.