I have confusion between SERVO_OUTPUT_RAW and SERVO_OUTPUT_RAW. I have already try it but it doesn’t show anything for me. I use for loop to detect all incoming mavlink message and seperate them with switch case function (i write it with C++). I want to know a correct way to handle all this message.
// My Code to recieve and read message //
*** For SERVO_OUTPUT_RAW ***
case MAVLINK_MSG_ID_SERVO_OUTPUT_RAW:
mavlink_servo_output_raw_t servo_out;
mavlink_msg_servo_output_raw_decode(&msg,&servo_out);
servo_out.time_usec = time_stamp;
servo_out.port = 0;
servo_out.servo2_raw = pwm_servo_1;
break;
*** For ACTUATOR_OUTPUT_STATUS ***
case MAVLINK_MSG_ID_ACTUATOR_OUTPUT_STATUS:
mavlink_actuator_output_status_t servo;
mavlink_msg_actuator_output_status_decode(&msg,&servo);
servo.time_usec = time_stamp;
servo.actuator[1] = serv01_output;
break;