Vectored thruster orientation

Yeah, that’s a known parameter mismatch (QGC 4.0 doesn’t have full support for ArduSub >= 4.1), but it should still work fine. That said, you can also update to QGC v4.1.6 (our latest recommended version) to fix the warning :slight_smile:

You can check that FRAME_CONFIG is set to Custom, and ensure that the Motors Setup Page is showing all 8 of your motors - I believe when using a custom frame no frame image will appear. From there I’d suggest using the motor test sliders to confirm the motors are all connected to the correct locations, and then you can either set the relevant Reverse checkboxes while doing that, or use the “Auto-Detect Directions” button once the vehicle is in the water (which I believe should work, but may struggle given the less strong alignment of motors in this configuration with each vehicle rotation angle) :slight_smile:

Hi Eliot,

Thanks for the info.

I was finally able to test this today. All thrusters were behaving as they should except for thrusters 7 and 8 which didn’t turn at all…

Is there another place in the code I need to specify this is for 8 thrusters?

Cheers,
Etienne

My best guess is this is because servo outputs 7 and 8 are specified as for the lights and camera tilt servo by default.

If you haven’t already you can try changing the lights and camera setup to use pins 9 and 10 instead, then go to the parameters and make sure SERVO_7_FUNCTION is set to Motor7, and similarly for 8.

Hi Eliot,

Many thanks for this. I usually load the default parameters for BR2 Heavy which change those values automatically.

All 8 thrusters seem to be behaving properly now.

I’ll be trying it in our tank on Monday.

Cheers,
E.

1 Like

Hello Again,

I was able to give it a test today, thrusters seem to be responding as they should.

Having more issues:

  • Depth sensor is not detected. Tried 2 different pixhawk and depth sensors.
  • When I load my custom frame, I get a message that the light parameters are not found and I can’t set the lights to anything else other than disabled.

Cheers,
E.

Did you build off ArduSub-stable, or ArduSub-beta / master?

Hmm, that’s odd, although if you’re using a beta or master branch firmware build it’s possible the parameters have changed, which may not be reflected in the version of QGC you’re using.

I am following this:


When I run this command
image
I get this:

edemers75@MSI:~/ardupilot$ git checkout ArduSub-stable -b new-branch
warning: unable to rmdir ‘modules/CrashDebug’: Directory not empty
warning: unable to rmdir ‘modules/DroneCAN/DSDL’: Directory not empty
warning: unable to rmdir ‘modules/DroneCAN/dronecan_dsdlc’: Directory not empty
warning: unable to rmdir ‘modules/DroneCAN/libcanard’: Directory not empty
warning: unable to rmdir ‘modules/DroneCAN/pydronecan’: Directory not empty
warning: unable to rmdir ‘modules/gsoap’: Directory not empty
M modules/ChibiOS
M modules/gbenchmark
M modules/gtest
M modules/mavlink
M modules/uavcan
M modules/waf
Switched to a new branch ‘new-branch’

Not sure if the warnings are important or not.

When I run this command
image
I get this:

edemers75@MSI:~/ardupilot$ git submodule update --init --recursive
Submodule ‘modules/libcanard’ (git://github.com/ArduPilot/libcanard.git) registered for path ‘modules/libcanard’
Cloning into ‘/home/edemers75/ardupilot/modules/libcanard’…
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see Improving Git protocol security on GitHub | The GitHub Blog for more information.
fatal: clone of ‘git://github.com/ArduPilot/libcanard.git’ into submodule path ‘/home/edemers75/ardupilot/modules/libcanard’ failed
Failed to clone ‘modules/libcanard’. Retry scheduled
Cloning into ‘/home/edemers75/ardupilot/modules/libcanard’…
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see Improving Git protocol security on GitHub | The GitHub Blog for more information.
fatal: clone of ‘git://github.com/ArduPilot/libcanard.git’ into submodule path ‘/home/edemers75/ardupilot/modules/libcanard’ failed
Failed to clone ‘modules/libcanard’ a second time, aborting

Not sure if after all these errors I am getting the right ardusub version.

Cheers,
E.

I am using the latest version from the link on your website for windows.

That shouldn’t be particularly problematic, it’s just some (unused) submodule folders that get left over from the branch switch, since master has some new submodules that aren’t in the Sub-4.0 branch (which the ArduSub-stable tag is currently sourced from). It’s best to avoid adding them to the tracked history and committing them, but even if you do accidentally do that they still wouldn’t have any code that actually tries to use them.

Ahh yes, that’s an issue that came up recently, and it’s an actual error, so it could stop things from working properly (in particular, because the submodules don’t get updated to track the branch, they would still be on the newer versions from master, which may have functionality differences). We unfortunately haven’t yet had the time to fix it properly, but that comment covers a workaround that can be used in the meantime.

Do you have a link so I can download the code manually?

I’ve zipped the repo at ArduSub-stable here, but it’s ~500MB to download, and because it was cloned directly from the ArduPilot repo you should be able to test with it but won’t be able to push changes to your own remote, or make pull requests.

That’s probably not particularly important though, since once you’ve confirmed your configuration works the way you want it to you can move the changes over to your own repo (off your master branch) and pull request from there :slight_smile:

Hello again,

I downloaded the file and copied it to my ubuntu wsl via file explorer.

Now I get this when I try to compile:
image

Sorry for all the questions, I am not a linux guy and just feeling my way around.

Did you follow the build environment setup? That uses sudo internally, which I would expect should mean there shouldn’t be permission issues at this stage. If you have already installed the prerequisites then maybe try chmod +x waf, but it shouldn’t be necessary (waf should already be executable by default).

I did initially but do I need to do it again with the files you sent? Is waf stored inside ardupilot folders?

image
looks like I don’t have permission for anything. :face_with_head_bandage:

The master branch has different prerequisites to the ArduSub-stable tag.

Yes.

Can you try running with sudo? It should ask you to put your password in.
e.g. run

sudo Tools/environment_install/install-prereqs-ubuntu.sh -y

hi im chris. i take over the the project and we are trying with a different approach using a linux computer. do you have experienced this issue before?

that is the result when i try to compile.

Hi @Christopher, welcome to the forum :slight_smile:

I have not experienced that issue before, but from your traceback:

  • The error you’re getting is that collections has no MutableSequence, which is a class that was removed in Python 3.3, so is presumably trying to run Python 2.7 code with a more recent Python 3 version
  • It seems a bit odd that you’re running from inside your Downloads folder - did you get the code via git, or did you use some other approach?

I expect the issue here is some missing or incorrect setup. If it’s helpful the Linux instructions are provided as direct steps here :slight_smile:

If that doesn’t work, please specify which Linux version you’re using, and any error messages you receive in the code fetching / compilation processes.

i tried to use the ardusub-stable file you provided in this discussion. anyways i tried the instructions you provide. is this fine? im on the part where the code is Tools/environment_install/install-prereqs-ubuntu.sh -y