fselius / qtcopter

2 stars 0 forks source link

Controlling AUX port with MAVROS #62

Open fselius opened 8 years ago

fselius commented 8 years ago

In order to drop the ball on target the Odroid needs to be able to control the AUX port of the Pixhawk. The mavlink command MAV_CMD_DO_SET_SERVO seems to do just that, need to figure out how to issue the command and verify that it does activate the servo.

@efiShtain @noamyogev84

roeemz commented 8 years ago

Can we use this to change the camera position?

fselius commented 8 years ago

Yes!

noamyogev84 commented 8 years ago

i think this command should be followed with a param indicating which servo you would like to trigger.

https://github.com/mavlink/mavros/issues/287

fselius commented 8 years ago

Correct, it takes two parameters - the servo pin as you mentioned and the output value 1000 to 2000.

http://copter.ardupilot.com/wiki/common-planning-a-mission-with-waypoints-and-events/common-mavlink-mission-command-messages-mav_cmd/#mav_cmd_do_set_servo

noamyogev84 commented 8 years ago

ok then. I'll implement it as a service call 'set_servo' is the string value. also, the channel number and the passed value (param1,param2) will be defined inside NavConfig.json.

fselius commented 8 years ago

Is it possible to set the passed values (param 1 & 2) when you call the service?

To activate the servo and drop the ball we'd like to call set_servo(param1 = 1, param2 = 1800), to stop the servo we'd like to call set_servo(param1 = 1, param2 = 1500). To change the camera orientation we'd call set_servo(param1 = 2, param2 = 2000) etc.

noamyogev84 commented 8 years ago

Yup

On Sunday, August 16, 2015, fselius notifications@github.com wrote:

Is it possible to set the passed values (param 1 & 2) when you call the service?

To activate the servo and drop the ball we'd like to call set_servo(param1 = 1, param2 = 1800), to stop the servo we'd like to call set_servo(param1 = 1, param2 = 1500). To change the camera orientation we'd call set_servo(param1 = 2, param2 = 2000) etc.

— Reply to this email directly or view it on GitHub https://github.com/fselius/qtcopter/issues/62#issuecomment-131612238.

efiShtain commented 8 years ago

we need to keep in mind it might not be instantly, have to check it carefully

2015-08-16 22:47 GMT+03:00 Noam Yogev notifications@github.com:

Yup

On Sunday, August 16, 2015, fselius notifications@github.com wrote:

Is it possible to set the passed values (param 1 & 2) when you call the service?

To activate the servo and drop the ball we'd like to call set_servo(param1 = 1, param2 = 1800), to stop the servo we'd like to call set_servo(param1 = 1, param2 = 1500). To change the camera orientation we'd call set_servo(param1 = 2, param2 = 2000) etc.

— Reply to this email directly or view it on GitHub https://github.com/fselius/qtcopter/issues/62#issuecomment-131612238.

— Reply to this email directly or view it on GitHub https://github.com/fselius/qtcopter/issues/62#issuecomment-131612902.

noamyogev84 commented 8 years ago

ball drop servo

guys, are there any configurations that need to take place in the mission planner regarding the servo? still stuck on that issue. http://copter.ardupilot.com/wiki/common-optional-hardware/common-servo/

is there any chance that the numbering of the channels are not 1-1? maybe aux 1 is channel 8 ? @serbuh @shadows89

selection_026