Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udp sending long commands through send is unsuccessful, but can succeed through send_default #199

Closed
computeone opened this issue Oct 22, 2023 · 0 comments

Comments

@computeone
Copy link

computeone commented Oct 22, 2023

     ```
   let mut takeoff = MavMessage::COMMAND_LONG(COMMAND_LONG_DATA{
                param1: 0.0,
                param2: 0.0,
                param3: 0.0,
                param4: 0.0,
                param5: 0.0,
                param6: 0.0,
                param7: 10.0,
                command: MAV_CMD_NAV_TAKEOFF,
                target_system:header.system_id,
                target_component: header.component_id,
                confirmation: 0,
            });
            //conn.send(&MavHeader {
           //     system_id: header.system_id,
          //      component_id: header.component_id,
          //      sequence: 1,
          //  }, &takeoff).expect("command takeoff failed!");
            `println!("{:?}",MavHeader::default());`
            conn.send_default(&takeoff).expect("failed");
```

send not work,but send_default can success
It is unsuccessful when the sytem_id is 1 and the component_id is 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant