Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dodecarotor cox bottom rotors don't spin #10677

Closed
GregGoldman opened this issue Oct 10, 2018 · 23 comments
Closed

Dodecarotor cox bottom rotors don't spin #10677

GregGoldman opened this issue Oct 10, 2018 · 23 comments

Comments

@GregGoldman
Copy link

GregGoldman commented Oct 10, 2018

Hi all,

I am trying to use the dodecarotor cox configuration on a pixhawk 2 using QGroundControl. Unfortunately, none of the bottom rotors spin when connected to the aux ports. I tried probing the pins with an oscilloscope: the main pins do just fine, but the aux pins get no signal. Is this a known issue, and has anyone used this build successfully?

@rallegab
Copy link

rallegab commented Dec 4, 2018

I think this is the same issue as mentioned by @1nvoker (#9719). I'm having the same issue so I will second both of these.

I know the code for this was written by @imcnanie (https://github.com/PX4/Firmware/pull/7532/files/fa93fe96096559d8a88eb46b1f3e55645d0fd6e6) back in June 2017, so it might be that one of the updates since then on how the mixing is done in PX4 (now it uses the px_generate_mixers.py script with .toml geometry files instead of using the multi_tables.py script) has screwed something up, and noone did a flight test on the new implementation before commiting.

I've been looking at it myself but I only know a limited amount about the PX4 code, so I've been unable to find a solution so far. Did you make any progress on this problem yourself? It would also be great if anyone that knows more about this might be able to help.

@stale
Copy link

stale bot commented Mar 4, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Admin: Wont fix label Mar 4, 2019
@imcnanie
Copy link
Contributor

imcnanie commented Mar 4, 2019

@GregGoldman @rallegab Just saw this. I'll see if I can get it running in a couple of days. Bumping to keep this from closing.

@stale stale bot removed the Admin: Wont fix label Mar 4, 2019
@clanegge
Copy link

@GregGoldman @rallegab @imcnanie Anybody has any updates on this issue?

@rallegab
Copy link

@clanegge Sorry, I've had no time to look at this since, and frankly I'm on other projects at the moment. I might move back to this soon however, maybe in a month or so.

@lang-simon
Copy link

Hello ! Any update about to make the dodecarotor works with PX4 ?

@LorenzMeier LorenzMeier added this to the Release v1.9.1 milestone Jun 5, 2019
@LorenzMeier
Copy link
Member

@MaEtUgR Could you look into this? Thanks!

@dagar dagar modified the milestones: Release v1.9.1, Release v1.9.2 Jun 24, 2019
@Mario2410
Copy link

Mario2410 commented Sep 10, 2019

Hello, also have the same problem here. Is there any update right now?
Thanks

@MaEtUgR
Copy link
Member

MaEtUgR commented Oct 21, 2019

ok, I think the biggest problem I face to debug this is to reproduce it.
I'll try to have a test setup and pull in additional help if I don't find the problem.

@Mario2410
Copy link

Mario2410 commented Oct 24, 2019 via email

@tiloro
Copy link

tiloro commented Dec 4, 2019

Any updates or info about which version is compatible with the configuration? Really having trouble here..

@stale
Copy link

stale bot commented Mar 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Mar 3, 2020
@saumilss2
Copy link

I'm having exactly the same issue with Bottom Motors or DodecaRotor not spinning.
I'm using PixHawk 2.0 with px4_fmu-v3.

I have already tried extensive troubleshooting on this.
My takeaways:

  • In PX4_SITL mode, with 16 pwm available on /dev/pwm_output0, I can easily load
    dodeca_top_cox.main.mix as well as dodeca_bottom_cox.aux.mix using following commands.

    mixer load /dev/pwm_output0 /dir/dodeca_top_cox.main.mix
    mixer append /dev/pwm_output0 /dir/dodeca_bottom_cox.aux.mix

  • But on NuttX Target, there are 8 main pwm on PX4IO (/dev/pwm_output0) while 6 aux pwm on
    PX4FMU (/dev/pwm_outptu1), so the "mixer append" doesn't really work.

    mixer load /dev/pwm_output0 /etc/mixers/dodeca_top_cox.main.mix
    mixer load /dev/pwm_output1 /etc/mixers/dodeca_bottom_cox.aux.mix

  • Above should work from the NSH console, but I'm unable to load the bottom mixer on
    /dev/pwm_output1

  • However I tried "mixer load /dev/pwm_output1 /etc/mixers/quad_x.main.mix" as well as "mixer
    load /dev/pwm_output0 /etc/mixers/dodeca_bottom_cox.aux.mix" and both of the commands
    worked

  • With that being said, it doesn't seem like there's anything incorrect with mixer files and other
    scripts who process the mixer geometries. It's also fairly obvious that, loading mixer on first 4 pwm
    aux outputs works, but px4fmu driver, definitely seems to have some issue communicating with
    last 2 pwm aux outputs.

  • I have been using 1.9.0 version of PX4 Firmware, I tried to play with increasing buffer lengths,
    increasing PX4IO numbers etc, I also used the latest version of the firmware and the issue still
    persists.

  • This is really frustrating to get a very expensive drone flying. I really appreciate if developers can
    look into it once more. I have provided as much information as I could. If I'm missing anything,
    please feel free to reply to my comment.

@stale stale bot removed the stale label Mar 3, 2020
@MaEtUgR
Copy link
Member

MaEtUgR commented Mar 12, 2020

Sorry that this issue went missing in the cracks. To be honest I don't consider myself IO communication or mixer configuration expert and don't have a Dodecarotor setup but I have a pixhawk 4 and can run some tests on there. Thanks a lot for all the investigations that narrow down the problem to be loading mixer configuration /etc/mixers/dodeca_bottom_cox.aux.mix on the IO pwm device /dev/pwm_output1!

@saumilss2
Copy link

Hey Matthias,
Thank you so much for looking more into this.
/etc/mixers/dodeca_bottom_cox.aux.mix mixer file loads just fine on
PX4IO pwm device, /dev/pwm_output0, but it is a struggle to load the same mixer file on
PX4FMU aux pwm device, /dev/pwm_output1
Very bizarre.

@spyvel
Copy link

spyvel commented Mar 31, 2020

Hello everyone.

I am also trying to get a dodecarotor running with px4. The bottom rotors won't spin. I am new to all this but during my tries I noticed a couple of things which seem weird and may help someone who is more experienced with the firmware code.

In QGC Mavlink console, I typed the command:

pwm info -d /dev/pwm_output1

the response was:

device: /dev/pwm_output1
WARN [fmu] warning: trim values not valid - no mixer loaded

and after that it shows info about the channels and channel groups. Then typing the following command:

param show PWM_AUX_TRIM1

the response was:

Symbols: x = used, + = saved, * = unsaved

735/1298 parameters used.

It seems that this parameter is empty (for every channel, 1 - 8). It doesn't even have the default value. Searching the parameters catalogue in QGC, I noticed that this parameter is not shown although the rest of the PWM_AUX parameters along with the PWM_MAIN parameters are shown properly (even the PWM_MAIN_TRIM parameters). Thus PWM_AUX_TRIM can't be set through the parameters menu. It can be set from the Mavlink console but it wouldn't make any difference because after a reboot pixhawk will see again these parameters as empty. I also tried to load the mixer after I have set the PWM_AUX_TRIM parameters equal to 0.0:

mixer load /dev/pwm_output1 /etc/mixers/dodeca_bottom_cox.aux.mix

The response was:

ERROR [mixer] failed to load mixers from /etc/mixers/dodeca_bottom_cox.aux.mix
ERROR [mixer] failed to load mixer

Trying to do the same to output0, is executed successfully. So, maybe something goes wrong regarding the way the PWM_AUX_TRIM parameters are treated when someone chooses the dodecarotor frame. If another frame is chosen, these parameters are visible in the QGC parameters menu.

I hope this will contribute to the solution of the problem.

@MaEtUgR
Copy link
Member

MaEtUgR commented Apr 1, 2020

@spyvel That analysis is very useful. From the dev call today I have the impression that this issue could be related to #14116 . Unfortunately I don't have the debugger in my quarantine to check but there might be a way to get the necessary output to the FMU and print it.

@MaEtUgR
Copy link
Member

MaEtUgR commented Apr 15, 2020

It's definitely a RAM issue on the IO chip. There are some optimizations done in #14129 but I think it was mentioned the largest mixer configuration still doesn't load 😬

@MaEtUgR MaEtUgR removed their assignment Apr 16, 2020
@spyvel
Copy link

spyvel commented May 13, 2020

@LorenzMeier
@MaEtUgR

Hello everyone.

It's been almost 1.5 months since my post in this topic and I can see that there is some progress. This matter is of great importance for my project and it's really a pity that the dodecarotor configuration is included in the QGC but it can't work properly.

However, I want to ask if the cause of the problem has been found and if we can expect a solution soon. Is it possible that this solution will be included in the upcoming firmware version? Is there anything we can do in QGC (e.g. edit some settings) to bypass this problem or we have to wait for the new firmware?

P.S. In my previous post I forgot to mention that in the dodecarotor configuration, whenever I tried to start the motors, the green PWR indicator of the FMU was turned off as soon as the motors started to move (of course only the I/O PWM controlled motors were moving). When the motors were stopped the indicator was turned back on.

@spyvel
Copy link

spyvel commented Jul 25, 2020

Hi!

Any progress regarding the dodecarotor? I just tried PX4 v. 1.11.0-rc1 but with no luck. Will it work with the upcoming stable firmware version?

@bys1123
Copy link
Contributor

bys1123 commented Sep 7, 2020

image
I met the same issue, will test #14129 later.

@bys1123
Copy link
Contributor

bys1123 commented Sep 7, 2020

#14129 Fixed my problem.

@dagar
Copy link
Member

dagar commented Sep 7, 2020

#14129 Fixed my problem.

Thanks for the followup.

@dagar dagar closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests