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

Camera IMU synchronisation support added #312

Merged
merged 4 commits into from
Jul 23, 2015
Merged

Conversation

mhkabir
Copy link
Member

@mhkabir mhkabir commented Jun 16, 2015

@vooon Please review. Don't merge yet.

Also, I'm unable to figure out how the python mavcmd script argument parsing works, so I couldn't edit it to add the command sending. Can you please add that or tell me how? Or maybe @TSC21 is interested?

PX4 pull is here : PX4/PX4-Autopilot#2207


bool trigger_control_cb(mavros::CommandTriggerControl::Request &req,
mavros::CommandTriggerControl::Response &res) {
return send_command_long_and_wait(MAV_CMD_DO_TRIGGER_CONTROL, (req.trigger_enable)? 1.0 : 0.0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You passed param1 to confirmation argument!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vooon Whoops. Fixed.

@vooon
Copy link
Member

vooon commented Jun 16, 2015

About python parser, read documentation: https://docs.python.org/2.7/library/argparse.html

Service proxy moved here: mavros.command

@mhkabir
Copy link
Member Author

mhkabir commented Jun 16, 2015

@vooon Some help needed :

kabir@Kabir-Envy:~$ rosrun mavros mavcmd trigger_control -e -i 300
Request failed. Check mavros logs. ACK: 4

What's going on here? I can't find the referred logs to track down what goes wrong.

@vooon
Copy link
Member

vooon commented Jun 16, 2015

Hmm, usually i don't see ACK from PX4 at all.
But 4 should be MAV_CMD_ACK_ERR_NOT_SUPPORTED.

@LorenzMeier
Copy link
Member

@mhkabir Does your issue with the rejected command persist? I saw a commit on the Firmware side which should resolve this.

@mhkabir
Copy link
Member Author

mhkabir commented Jun 18, 2015

@LorenzMeier Yes, this persists. I had applied the "commander ignore" commit when testing this. No error / reject message comes in via mavlink log though.

@vooon vooon added this to the Version 0.12 milestone Jun 20, 2015
@vooon vooon removed this from the Version 0.12 milestone Jun 28, 2015
@vooon
Copy link
Member

vooon commented Jul 18, 2015

@mhkabir status now?

@mhkabir
Copy link
Member Author

mhkabir commented Jul 18, 2015

@vooon No luck. Can you have a look? Latest PX4 master has the trigger app, but mavros still fails.

@vooon
Copy link
Member

vooon commented Jul 18, 2015

Now i'm going to reassembly my plane, so can't test master right now.

vooon added a commit that referenced this pull request Jul 23, 2015
Camera IMU synchronisation support added
@vooon vooon merged commit 8cb7853 into mavlink:master Jul 23, 2015
@vooon
Copy link
Member

vooon commented Jul 23, 2015

For me this PR looks good. Reject seems related to Firmware side, so i merge as is.

@vooon vooon added this to the Version 0.13 milestone Jul 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants