# OFFBOARD MODE with PX4\_HITL, MAVROS and QGC

**URL:** <https://discuss.px4.io/t/offboard-mode-with-px4-hitl-mavros-and-qgc/42506>\
**Category:** PX4 Autopilot\
**Created:** [November 20, 2024, 7:52pm UTC](https://discuss.px4.io/t/offboard-mode-with-px4-hitl-mavros-and-qgc/42506 "2024-11-20T19:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliacostantini](https://discuss.px4.io/user_avatar/discuss.px4.io/eliacostantini/32/17842_2.png) [@eliacostantini](https://discuss.px4.io/u/eliacostantini)\
**Post date:** [November 20, 2024, 7:52pm UTC](https://discuss.px4.io/t/offboard-mode-with-px4-hitl-mavros-and-qgc/42506/1 "2024-11-20T19:52:16Z")

</div>

Hello everyone, I am working on testing model-based design control strategies in Simulink and then test them in px4\_sitl and px4\_hitl with Gazebo-Classic through OFFBOARD flight mode. The control input is sent to the drones via MAVROS topics, because in real world experiments we have Holybro X500 drones equipped with Pixhawk 6C and Raspberry Pi as onboard (on which MAVROS node will be running).

Regarding px4\_sitl everything is working fine, I am able to control the drones, make them take off and everything in offboard. However, when doing the same with HITL (as described by the PX4 page and using the exact same Simulink model) the problem is **QGroundControl keeps saying no offboard signal even if position or acceleration setpoints are being published**. In the setpoint message each field is populated, namely timestamp, frame\_id, etc and I can see the topic correctly published in /mavros/setpoint\_accel/accel. The environment is an Ubuntu Linux machine with version 20.04 and ROS Noetic. Mavros runs on board the RPi and the communication to the FCU is done through USB to TELEM2.

Thanks,  
Elia
