Hello everyone,
I hope you're doing well, and thank you for welcoming me into the MAVLINK community.
I'm still relatively new to using MAVLink in C (I previously used it with Python via DroneKit), and I'm having trouble achieving my goal.
In short, I want to create a program with two threads: one for receiving messages and the other for sending commands to change the altitude.
I have already created a program that compiles and works correctly, allowing me to connect to my SITL.
At the moment, I simply run the
sim_vehicle.py script from ArduCopter and connect through the default UDP port.
When I execute my program, I can see the messages sent by the flight controller, but I can't change the altitude. However, the drone has taken off and is in "Guided" mode. Do you have any suggestions or ideas on how to fix this?
Thanks in advance,
Martin