-
Notifications
You must be signed in to change notification settings - Fork 18k
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
AP_DDS: Joystick Support 2 #28145
AP_DDS: Joystick Support 2 #28145
Conversation
Please add some tests (automated), or some instructions on how to test this in CLI. Once we've got those and we're happy, the commit history can be cleaned up. Nice job cleaning up all the previous actions. Looking good. |
We also need some idea on how this will interract if you are also sending normal RC input (SBUS from RC transmitter for example). If that gives complete authority to the companion computer, whether the two inputs fight, or something else. |
@Ryanf55 I am working on the tests. For the RC, we might check whether the Radio is connected before overriding its channels. This would prevent any conflict and prioritize RC at all time. |
Yep. It's worth reviewing this wiki and seeing whether we want to make DDS act in a similar way of "no pulses" and re-use the existing failover logic. |
The RcChannel already handles overrides:
|
Looks good, adding in the teleop joy instructions could be nice for this PR. I can dump it into the wiki. Can you clean up the history and fix your |
@Ryanf55 of course, I forgot to update my laptop configuration. |
Needs update to libraries/AP_DDS/README.md |
abf4ee0
to
8ae1a17
Compare
libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp
Outdated
Show resolved
Hide resolved
libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp
Outdated
Show resolved
Hide resolved
464359d
to
8614d52
Compare
I force pushed with clean history. Can you share which email you want to attribute the work to? I also
|
a99f25c
to
325f686
Compare
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.
6fc4f97
to
325f686
Compare
@Ryanf55 The test is pushed and working now, run it with: I also updated the Readme, I think we are good to go once CI has passed. |
@Ryanf55 I just noticed that when I passed the astyle on the Readme, it really messed it up. I will need to restore it and push it again. |
How did you run |
As a simple test, you can
|
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.
Nice, looks good! Remove dead code and squash all your commits to one AP_DDS: ...
commit.
Tools/ros2/ardupilot_dds_tests/test/ardupilot_dds_tests/test_joy_msg_received.py
Outdated
Show resolved
Hide resolved
Tools/ros2/ardupilot_dds_tests/test/ardupilot_dds_tests/test_joy_msg_received.py
Outdated
Show resolved
Hide resolved
sitl-plane test fails. I don't know how to test it locally, here it's what is says: 2024-09-21T21:16:51.5884422Z >>>> FAILED STEP: test.Plane at Sat Sep 21 21:16:51 2024 |
Some tests are flaky. Don't worry about those passing till you have the commit history clean, and I'll rerun the flaky unrelated tests. |
77d2586
to
381bf6d
Compare
@Ryanf55 I rebased and cleaned up the history, leaving one single commit after your previous approval. |
I tagged for dev call for review, but will be late. Feel free to provide any feedback blocking merge. |
f6334dd
to
3494cac
Compare
Signed-off-by: Ryan Friedman <[email protected]> Co-Authored-by: Tiziano Fiorenzani
3494cac
to
c9a85d3
Compare
I noticed that this Pull Request has been stuck for one year.
#25334
Tagging @srmainwaring and @Ryanf55.