I want the ROV to rotate uniformly around a central point

Hi @robotmark,

How are you approaching this? Are you using a custom flight mode that tries to maintain a yaw rate and lateral (body-frame) speed for the vehicle (or an external equivalent using MAVLink telemetry), or are you doing something like commanding consistent yaw and lateral thruster outputs via manual control?

Control accuracy is dependent on the accuracy and precision of the encoded understanding of the vehicle’s dynamics and the environment it’s operating in. Notably,

  • feed-forward control (i.e. with no feedback from sensors) is only as good as the built in models, and has no way of detecting or dealing with any drift from the intended path (due to model inaccuracies)
    • thrusters are controlled primarily by thrust output, which is not necessarily directly correlated with vehicle speed, and is also not linear with PWM values
    • moving water (e.g. from currents, or from the vehicle earlier in time) adds forces to the vehicle that feed-forward control doesn’t know about and hence can’t counteract
  • control with feedback is still only as good as the sensor data, and derivative feedback can not handle integral drift
    • e.g. accelerometer values can estimate instantaneous velocity, but because the values aren’t provided for every moment in time there’s inevitably some error (together with innate error/noise in the actual readings), which leads to slight inaccuracies in every velocity estimate, and progressively larger errors for position estimation
    • this leads into the discussion in your previous post about speed

For short periods of time you may be able to use a custom flight mode that does what it can to maintain the yaw rate and lateral (body frame) speed estimate from IMU readings, but positional drift is inevitable and can’t be corrected for. The same reasoning applies to doing this externally, but error will occur faster because MAVLink telemetry has additional latency as well as lower frequency access to the sensor measurements.

Fundamentally, controlling motion in a circle with a consistent radius and center requires some sort of positional feedback, because geometry is position based. If your vehicle has accurate position measurements then you may be able to use the developmental circle flight mode that’s built in to ArduSub. Alternatively if you have something like a pole or vertical column at the location that you’re rotating around you may be able to use computer vision as a localised feedback source instead, as discussed in this post.