Autonomous problem

Hi @enis.getmez,

Is there a reason this is via private message instead of as a public post? I’ll still see it if it’s public, and that also means others can chime in (possibly before I get to it), and others in the community can benefit from the solution afterwards as well.

I’m unsure what your custom flight mode does, so it’s not possible for me to tell you why the ROV isn’t moving as you expect.

This post is likely relevant:

Given this is a direct serial connection to the autopilot board I assume you’re trying to do this autonomously, and also likely not using our companion computer image - is that correct?

A few side-notes:

  • you can use master.motors_armed_wait() to wait until arming has succeeded (instead of waiting for a fixed period that provides no guarantees about the autopilot state, and could be unnecessarily long)
  • you can use master.arducopter_disarm() to disarm if you want to
  • it may be worth adding a master.motors_disarmed_wait() to the end of your program to make sure the disarming was actually successful.
1 Like