Hi Coline! I tried the same configuration, but the behaviour of z value is not as you described.
I did the following:
- started simulator (JMAVSim)
- started mavros and succesfully connected to simulator
- started script:
-- I'm publishing manual_control msg to /mavros/manual_control/send
-- I'm using MANUAL flight mode (but I have the same problem even with STABILIZED)
-- I'm trying the following list of messages at 33hz rate (in order x,y,z,r,buttons)
0, 0, 550, 0, 0, 0 #take off, for 2 seconds
0, 0, 500, 0, 0, 0 #stay still for 3 seconds
0, 500, 500, 0, 0, 0 #right for 2 seconds
0, 0, 500, 0, 0, 0 #still for 3 seconds
0, -500, 500, 0, 0, 0 #left for 2 seconds
My problem is that, x and y value are ok, but z=500 is not the neutral, the drone starts climbing and continues climbing till the end.
If I set z = 0 for neutral position (like written in the official documentation where the range is [-1000,+1000]), the drone falls down immediately.
If I set the POSCTL flight mode, the drone arms correctly but doesn't move.
What am I missing?
Please help me because it's very frustrating.