rust-mavlink icon indicating copy to clipboard operation
rust-mavlink copied to clipboard

ardupilotmega is not using icarous and uavionix modules when generated

Open patrickelectric opened this issue 4 years ago • 2 comments

@laptou can you take a look ?

patrickelectric avatar Jun 19 '20 15:06 patrickelectric

It would be nice to have access to common and others messages that are included in ardupilotmega with:

pub fn get_apm_mount_status() -> mavlink::ardupilotmega::HEARTBEAT {
    mavlink::ardupilotmega::HEARTBEAT {
        custom_mode: 0,
        mavtype: mavlink::ardupilotmega::MavType::MAV_TYPE_QUADROTOR,
        autopilot: mavlink::ardupilotmega::MavAutopilot::MAV_AUTOPILOT_ARDUPILOTMEGA,
        base_mode: mavlink::ardupilotmega::MavModeFlag::empty(),
        system_status: mavlink::ardupilotmega::MavState::MAV_STATE_STANDBY,
        mavlink_version: 0x3,
    }
}

patrickelectric avatar Jun 19 '20 15:06 patrickelectric

Maybe is better to check the necessary includes in the xml and merge all in a big one to do the parse process.

patrickelectric avatar Jun 19 '20 16:06 patrickelectric