Ardustation Servo Control

Hi All,

I am working on a new vehicle design and for the past 2 days been trying to add direct servo control to modified ardustation 2 code.

It communicates with my ardupilot, heartbeat and parameter streams ok but will not directly change servo states.

The code I am using is:

mavlink_msg_servo_output_raw_pack(
127, 0, &msg, millisecond_count, 0, 
1100, 
1100, 
1100,
1100,
1100,
1100,
1100, 
1100);

send_message(&msg);

At the moment I am just wanting to get some  change on the ardupilot. The code compiles fine but is totally ignored when sending. I am monitoring servo 8 output.

Can anyone tell me what I am missing, what could be be making the ardupilot ignore the command?

Dose the ardupilot need to be sent a command prior to a servo output command?

Hoping someone can help, please.

Richard

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…