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

[Bug] Position Mode not arming #21799

Open
fbenti opened this issue Jul 4, 2023 · 10 comments
Open

[Bug] Position Mode not arming #21799

fbenti opened this issue Jul 4, 2023 · 10 comments

Comments

@fbenti
Copy link

fbenti commented Jul 4, 2023

Describe the bug

Flying with v1.14 beta.

Despite GPS is receiving good signal, I'm not able to arm in position mode.

To Reproduce

Arming with switch

Expected behavior

Arming in position mode

Screenshot / Media

Screenshot from 2023-07-04 14-36-17

Flight Log

https://logs.px4.io/plot_app?log=ddb8a7ba-2e3f-4a2d-8d57-d8f63e96427d

Software Version

v.14 beta

Flight controller

px4 v6

Vehicle type

Multicopter

How are the different components wired up (including port information)

No response

Additional context

No response

@w2016561536
Copy link

It seems that you disarm by remote controller, Is your arming control on your rc is a button, not a switch?

@fbenti
Copy link
Author

fbenti commented Jul 4, 2023

No it is a switch, why do you see that?

@w2016561536
Copy link

In the end of the Logged Messages, it says Disarmed by RC (switch)

@fbenti
Copy link
Author

fbenti commented Jul 4, 2023

Nono that was my input, I disarmed it after I saw it was not arming

@MaEtUgR
Copy link
Member

MaEtUgR commented Jul 5, 2023

@fbenti Thanks for the report! Your arm switch works fine as you armed the vehicle and disarmed it again as intended. The problem I assume you see is that the motors do not spin when you arm. That is because the minimum PWM value that is output while the vehicle is armed is 1000us which for the ESC still means the motor should not spin.

image

Since the current default configuration leads to your exact problem I'm planning to change it (also for 1.14) here: #21513 and update documentation here: PX4/PX4-user_guide#2599

To fix your vehicle I suggest setting the PWM configuration of all 4 motor outputs according to the defaults I suggest in my change:

  • Remove propellers for safety
  • Set "disarmed" PWM configuration to 1000, the motors should still not spin
  • Set "minimum" PWM configuration to 1100, now if you arm in Position or Altitude mode or move the motor test slider over the initial bump all motors should spin
  • Set "maximum" PWM configuration to 1900
  • If you find better values for your ESCs by testing feel free to use those (e.g. minimum 1050, maximum 1950)

image

I'm open to any feedback, please let me know how it goes 🙏

Sidenote: The reason why you currently see spinning motors in Stabilized/Manual mode and just not Position mode is that the minimum collective thrust in Stabilized/Manual mode is MPC_MANTHR_MIN which by default is 8% while in Position mode the collective thrust starts at 0% until you take off. With such a configuration the drone might accidentally stop the motors in the air and likely get unstable whenever you descend quickly in Stabilized/Manual mode so please follow the above suggestions to solve the problem before flying.

@DronecodeBot
Copy link

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/quad-crush/33060/5

@jjmmss00
Copy link

I have same problem. I am not able to arm in position mode. QGC gives prompt to change to manual mode. Interesting is that it just started doing this. I used to be able to arm in position mode. I have not upgraded anything, but must have changed something.

@MaEtUgR
Copy link
Member

MaEtUgR commented Feb 12, 2024

@jjmmss00 Is that on the main branch? Generally, if you are in a mode and you cannot arm the ground station (if not completely outdated) should tell you why. If you see no error then either the arming trigger e.g. gesture, switch doesn't work or you actually arm (UI changes to Armed
image
) but your motors don't spin then it's likely a motor configuration issue like the PWM one I described above. Can you check and provide more context?

Could you provide a log of you trying to arm?
For that go to the Console under Analyze > MAVLink Console
image

@jjmmss00
Copy link

jjmmss00 commented Feb 12, 2024 via email

@jjmmss00
Copy link

jjmmss00 commented Feb 15, 2024 via email

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

6 participants