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

Trouble with MessageParamExtRequestList #17

Closed
xinnad opened this issue Dec 3, 2021 · 4 comments
Closed

Trouble with MessageParamExtRequestList #17

xinnad opened this issue Dec 3, 2021 · 4 comments
Labels
question Further information is requested

Comments

@xinnad
Copy link

xinnad commented Dec 3, 2021

I'm trying to get the full parameter list over mavlink with

node.WriteMessageAll(&common.MessageParamExtRequestList{
		TargetSystem: d.Sysid,
		TargetComponent: d.CompId,
	})

I think I should receive the list of params as a response but I don't see anything with:

node, err := gomavlib.NewNode(gomavlib.NodeConf{
		Endpoints: []gomavlib.EndpointConf{
			gomavlib.EndpointUDPServer{Address: url},
		},
		Dialect:     common.Dialect,
		OutVersion:  gomavlib.V1, // change to V1 if you're unable to communicate with the target
		OutSystemID: 254,
	})
	if err != nil {
		panic(err)
	}

	defer node.Close()

	for evt := range node.Events() {
		if frm, ok := evt.(*gomavlib.EventFrame); ok {
			switch msg := frm.Message().(type) {
			
			case *common.MessageParamExtValue:
				fmt.Printf("  Param Val: %v\n", msg)

I can see responses from MAV_CMD items with *common.MessageCommandAck but not from the param list.

I didn't see any examples that included parameter requests with responses and was curious if anyone had something.

Thanks for your help!

@aler9
Copy link
Member

aler9 commented Dec 8, 2021

Hello, if you can see responses from MAV_CMD it means that communication is working properly.

If you can't see responses from MessageParamExtRequestList, it means that your drone doesn't support the extened parameter protocol.

@aler9 aler9 added the question Further information is requested label Dec 8, 2021
@xinnad
Copy link
Author

xinnad commented Dec 8, 2021

Thank you!

@xinnad
Copy link
Author

xinnad commented Dec 9, 2021

Confirmed I was using the wrong command. MessageParamRequestList returned all params as MessageParamValue like I'd expect.

@xinnad xinnad closed this as completed Dec 9, 2021
@github-actions
Copy link

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants