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

HITL/HIL: disable lockdown not working #14069

Open
gian1312 opened this issue Jan 30, 2020 · 13 comments
Open

HITL/HIL: disable lockdown not working #14069

gian1312 opened this issue Jan 30, 2020 · 13 comments
Labels
bug Drivers 🔧 Sensors, Actuators, etc

Comments

@gian1312
Copy link

gian1312 commented Jan 30, 2020

Describe the bug
Same behavior as in #5680.
When disabling the lockdown with the px4io lockdown disable command, there is no output to the real actuators in HIL-mode.

To Reproduce
Steps to reproduce the behavior:

  1. Power Servo Rail and make sure that all CS and props can move freely (and the plane is secured)
  2. Start in HIL-Mode
  3. Arm Plane
  4. Enter said command
  5. Move your TX (Ideally something would happen)

Expected behavior
I want the actuators to move in Gazebo and on the real plane simultaneously.
At the moment, they work either in HIL in Gazebo or in reality with HIL disabled.

Log Files and Screenshots
There are no log files. If there is anything, I could provide, please let me know.

Drone:
Fixed Wing (MPX Easy Glider)

@gian1312 gian1312 changed the title HIL: disable lockdown not working HITL/HIL: disable lockdown not working Feb 2, 2020
@julianoes julianoes added bug Drivers 🔧 Sensors, Actuators, etc labels Feb 12, 2020
@gian1312
Copy link
Author

Are there any inputs/ideas how I could fix this?

@julianoes
Copy link
Contributor

I think you would have to debug (using a console connected and printf) your way through all the lockdown flags, or if it's correct on the FMU side, inspect the pxi4ofirmware code:
https://github.com/PX4/Firmware/tree/master/src/modules/px4iofirmware

@stale
Copy link

stale bot commented May 20, 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 May 20, 2020
@gian1312
Copy link
Author

Has it been addressed yet?

@stale stale bot removed the stale label May 20, 2020
@Mjohn1108
Copy link

yeah, same problem here i want to do HIL simulation with the servos and motors actually running. With piccolo servos and motors are working perfectly in HIL. We want to see the actual behavior of the plane.

@stale
Copy link

stale bot commented Sep 20, 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 Sep 20, 2020
@gian1312
Copy link
Author

Has it been addressed yet?

@ghost
Copy link

ghost commented Nov 5, 2020

I got it working. This is what I did:

  1. I used the latest px4 firmware (v1.11.1 - also works on current master branch)
  2. I only changed one file (state_machine_helper.cpp): Commented the line armed->lockdown = true; inside if (hil_enabled) { block
  3. I compiled, built and then uploaded this firmware in QGC v3.5.6
  4. In QGC I disabled HITL then rebooted vehicle and then selected Standard-Plane as the airframe
  5. I pressed the safety switch to check if my servos are working as per the radio control.
  6. Then, I enabled HITL, again rebooted the vehicle and selected 'HIL-Star' as my airframe.

Note: At this point, the servos should still be active and controlled by radio.

  1. I launched XPlane-11 and started a flight
  2. In QGC, I opened the HIL widget to connect with X-Plane 11
  3. Then, I armed the vehicle

After arming; the real servos and the X-Plane aircraft wings should both be working and you should also be able to fly the plane using the radio.

I hope this helps someone.

@stale stale bot removed the stale label Nov 5, 2020
@MuneebaAsif1
Copy link

Honestly, I keep seeing this one comment regarding v 1.11.1 everywhere, but it does NOT work. Does anyone have a working solution?

@julianoes
Copy link
Contributor

v1.11.1 is ancient. I doubt anyone is going to help with that.

@MuneebaAsif1
Copy link

Yes, I am using 1.13.3 with QGC v4.3.0. How do I enable motor actuation with HITL that I can observe on both the hardware and jMAVsim?

@NanyongGit
Copy link

Looking for a solution as well to get the motors running... Anyone got anything?

@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/px4-v1-14-v1-13-hitl-actual-motors-spinning/37437/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Drivers 🔧 Sensors, Actuators, etc
Projects
None yet
Development

No branches or pull requests

6 participants