"@Aurelien ROY and @Maxx_UAV
Great work! I can't wait to give it a try, it looks really powerful. If I have any time, I may want to look into doing some of the same things with a HIL setup instead of the SW executable. But for now, this looks like a…"
"Aurelien, I am running Ardupilot on my Pixhawk. I am really struggling with two things: 1) Setting the Pixhawk into HIL mode and 2) Writing a waypoint to the Pixhawk. Once I have these in place, I can probably figure out how to arm and start the…"
"Hey Baden, have you made any headway on this? I am also struggling to send messages to my Pixhawk (running ardupilot software). I outlined what I am doing in this post if you want to take a…"
I had a similar topic to this, but since I've made some significant changes and the old conversation was getting a bit muddled, I wanted to start fresh with a detailed explanation. The other discussion can be seen here:…
"Aurelien,
I went through your setup from the PDF instructions on your github page and I actually can't seem to get the regular sim_vehicle.sh to run. I get the "Connection Refused', 'sleeping' message that you mentioned in the instructions, but I…"
"Stephen, I think I figured out what you meant by your previous message. Using the MISSION_ITEM message (#39), you can send a MAV_CMD value and that is how I would set the Pixhawk into HIL mode.
Now my problem is actually getting an ACK back from…"
"So I saw the MAV_CMD and MAV_CMD_DO_SET_PARAMETER, but it doesn't look like MAV_CMD is a message. I can't seem to figure out how to send that, but I'll keep looking because that seems to be exactly what I want.
"Stephen, the message I really needed was actually the SERVO_OUTPUT_RAW message, and I got that working for my purposes. So right now, I have the servo outputs from the Pixhawk being mapped to RPM and subsequently being sent into the Gazebo/ROS…"
"Stephen, thank you for the quick reply. I was looking at the RC_CHANNELS_SCALED message, but that doesn't seem to be the output from the Pixhawk. Am I misunderstanding the MAVLINK message specification for that message? I am looking for a message…"
I am trying to write my own HIL code that makes use of the MAVLINK protocol and a Pixhawk autopilot. I'll try to explain what I'm trying to do before I go into the problems I am having:The overall architecture of my system is I want to use an actual…
"Aurelien, thanks for your help. For my purposes, I think I have the SITL simulation working. However, I eventually need to use the actual Pixhawk hardware in a similar fashion to the setup described in this article. I know at some point (I can't…"