kas-lab / suave

An Exemplar for Self-Adaptive Underwater Vehicles performing pipeline inspection
https://kas-lab.github.io/suave/
Apache License 2.0
28 stars 9 forks source link

Insert thruster failure #19

Closed Rezenders closed 1 year ago

Rezenders commented 1 year ago

Insert thruster failure. Create a node that makes a thruster fail in a predetermined point of time.

Info: https://discuss.bluerobotics.com/t/is-it-possible-to-adapt-at-runtime-the-motors-contribution-to-the-6dof/13079/3

That said, given you’re specifically trying to simulate failures, you should be able to achieve an equivalent result by just disabling the output for the motor you want to “fail”. You can do that by setting the relevant SERVOn_FUNCTION parameter from Motor{n} to Disabled (0), which you can either set in QGC, or set directly with MAVLink (e.g. using a Pymavlink script). If you have a separate MAVLink endpoint set up for it you can even use a pymavlink script while QGroundControl is connected to the standard endpoint (e.g. to simulate a sudden live failure).

Rezenders commented 1 year ago

Done at 8c6feff