-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Problem with MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS #11697
Comments
Can you flash the v3 target? You might have to update the bootloader first (https://docs.px4.io/en/config/firmware.html#bootloader). |
I found the problem. Turns out pwm_out_sim module was removed from nuttx_px4fmu-v2_default.cmake, but this module is needed to generate fake PWM actuator_outputs when running in HITL mode. Uncommenting this line and rebuilding v1.8.2 firmware works fine.
|
@lovettchris there should now be sufficient flash space to re-enable pwm_out_sim by default. |
Yes, there was enough space, I didn't have to remove anything else. |
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. |
Hi, |
I see #12249 might be related (same symptom) |
Also possibly related #12629 |
@lovettchris I'm trying to reproduce the issue but I don't see it with jMAVSim. I've therefore started to build UnrealEngine and AirSim on my Linux (Fedora 30) but I ran into other troubles there:
|
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Repro: run AirSim with latest v1.8.2 firmware on Pixhawk v2 in HIL_QUADROCOPTER_X mode. Try and take off, nothing happens, rotors do not spin.
The PX4 status shows MAV_MODE_FLAG_HIL_ENABLED and AirSim is getting MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS , but the actuator control values in the message are all zeros all the time even when my RC radio throttle is set to full.
See my px4 log file. You can see my manual Throttle input in "Manual Control Inputs" graph - but these throttle values are not making it out to the HIL_ACTUATOR_CONTROLS message.
If I move my Pixhawk back to version 1.7.0 of the PX4 Firmware then everything works fine. Has something changed recently in the mavlink protocol with PX4 in this area?
Note that if I also connect to nuttx shell the commander seems happy enough, but still sending no actuator controls to AirSim:
px4 parameters: params.zip
Note: the same scenario works fine with v1.8.2 SITL build of PX4. So something different with HITL...
The text was updated successfully, but these errors were encountered: