-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
This is implementation of controlling auxilary PWM outputs with a mission item (mavlink message id = 183). #2138
Conversation
with a mission item (mavlink message id = 183).
I've tested it in flight, but unfortunately I don't have any logs right now. However I don't think they would be of any use in this case. |
can i merge this branch so i can give it a test? |
Hello, yes you can do it. |
betwenn when you tested did you use the custom widget with the messase mav_cmd_do_set_servo? |
When testing i used it only in mission, here is the test mission to test servo on AUX6 output when flying betwen two points, first parameter is AUX chan id from 1 to 6, and second parameter is the PWM value. 0 1 3 16 4 5 0 0 58.7106822000000008 35.828629699999999 4 1 1 0 3 183 6 900 0 0 0 0 4 1 2 0 3 16 4 5 0 0 58.7106336850431632 35.8289498448371887 4 1 3 0 3 183 6 2000 0 0 0 0 4 1 4 0 3 16 4 5 0 0 58.7106822000000008 35.828629699999999 4 1 5 0 3 183 6 900 0 0 0 0 4 1 6 0 3 16 4 5 0 0 58.7106336850431632 35.8289498448371887 4 1 7 0 3 183 6 2000 0 0 0 0 4 1 8 0 3 16 4 5 0 0 58.7106822000000008 35.828629699999999 4 1 9 0 3 183 6 900 0 0 02 0 4 1 10 0 3 16 4 5 0 0 58.7106336850431632 35.8289498448371887 4 1 11 0 3 183 6 2000 0 0 0 0 4 1 12 0 3 16 4 5 0 0 58.7106822000000008 35.828629699999999 4 1 13 0 3 183 6 900 0 0 0 0 4 1 14 0 3 16 4 5 0 0 58.7106336850431632 35.8289498448371887 4 1 15 0 3 183 6 2000 0 0 0 0 4 1 |
Can you provide us with the qml file for this custom command widget? |
i still get the unsupported command message . I m trying to test it in manual mode , could this be the issue? This is how i modified the qml file : QGCButton { |
I'm unsure about the testing state here - is this working or WIP? |
@@ -71,6 +74,13 @@ MissionBlock::~MissionBlock() | |||
bool | |||
MissionBlock::is_mission_item_reached() | |||
{ | |||
if (_mission_item.nav_cmd == NAV_CMD_DO_SET_SERVO) { | |||
|
|||
up_pwm_servo_arm(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is crossing the abstraction layers and not something we should be generally doing. The right approach would be to publish to the actuator_control group #2 which is for payload, and to add a mixer in your airframe config which maps this to the output. The reason is that we want our architecture to scale to PWM but also UAVCAN.
https://pixhawk.org/dev/mixing#control_groups
You need to whitelist the mission item here now to indicate its supported: |
- mavlink in PX4/Firmware (71bfb6e): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@139e1b0 - Changes: mavlink/mavlink@d65952b...139e1b0 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (3db8660): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (6368e78): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (bce2817): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (cb75b11): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (26f7835): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (8f705eb): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (a4051bc): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (5c30207): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (47974fb): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (e39e341): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (0bf19e7): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (99e7713): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (234e2ff): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (aeeb71f): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (291e3ed): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (1185f3d): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (1475aa0): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (824c587): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (3d3eb00): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (69f092c): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (5d6f7e3): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (80b83f9): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
- mavlink in PX4/Firmware (40b8b63): mavlink/mavlink@d65952b - mavlink current upstream: mavlink/mavlink@bb52e30 - Changes: mavlink/mavlink@d65952b...bb52e30 bb52e30d 2024-08-01 Hamish Willee - comment - use markdown in replaced by to fix rendering (#2137) 6ac37cde 2024-08-01 Hamish Willee - Docs generation improvements (#2139) 139e1b0e 2024-08-01 Hamish Willee - Pymavlink update - primarily for fixes to generator error reporting (#2138) 6ef6f2c0 2024-07-24 Claudio Chies - Yaw Orbit Behaviour - add an option to select system default (#2132) d219fee8 2024-07-18 Nick E - common.xml: Add "encoding" field to VIDEO_STREAM_INFORMATION (#2127) a5e324fb 2024-07-18 Julian Oes - common: add camera_device_id to CAMERA_INFORMATION (#2121)
Hello,
Some time ago I faced a problem with controlling servos attached to PX4 during mission execution.
After some discussion here
https://groups.google.com/forum/#!topic/px4users/_IrwFDOd2p8
I implemented this functionality.
Regards,
Michail.