I am trying to write GPS data to my pictures that are being taken. The way this is happening is a send the camera_feedback_msg via telemetry Line to the Flir Vue Pro. Once i send the message I take the picture by sending the PWM Signal to the correct duty cycle. I have review that i am taking the picture and that works correctly. But i am not sure if the way i am sending the message with the data is correct or the order that i am sending it. Below is the code that i am doing to pack and send the message:
int count = 1;
len = mavlink_msg_to_send_buffer(buf,&msg);
Please let me know if things are correct or any suggestions on how to setup the logic for this.