void Rover::send_wheel_encoder(mavlink_channel_t chan) { // send wheel encoder data using rpm message if (g2.wheel_encoder.enabled(0) || g2.wheel_encoder.enabled(1)) { mavlink_msg_rpm_send(chan, wheel_encoder_rpm[0], wheel_encoder_rpm[1]); } }
void NOINLINE Sub::send_rpm(mavlink_channel_t chan) { if (rpm_sensor.enabled(0) || rpm_sensor.enabled(1)) { mavlink_msg_rpm_send( chan, rpm_sensor.get_rpm(0), rpm_sensor.get_rpm(1)); } }