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
Added SITL Gazebo #12346
Added SITL Gazebo #12346
Conversation
This comment has been minimized.
This comment has been minimized.
It's a hidden here: https://github.com/betaflight/betaflight/tree/master/src/main/target/SITL But we'd like to include any updated to documentation on the betaflight.com repo (development section). Also have been using Gazebo before with SITL (around 2019) it looks much better now. Need some time to get it all running on a test machine. Hopefully Ubuntu 22.04 is sufficient as in the past we had to use older versions of Ubuntu to get ROS running. |
AUTOMERGE: (FAIL)
|
src/main/target/SITL/target.c
Outdated
if (index + pwmRawPkt.motorCount < SIMULATOR_MAX_PWM_CHANNELS) | ||
{ |
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.
if (index + pwmRawPkt.motorCount < SIMULATOR_MAX_PWM_CHANNELS) | |
{ | |
if (index + pwmRawPkt.motorCount < SIMULATOR_MAX_PWM_CHANNELS) { |
Please check: https://betaflight.com/docs/development/CodingStyle
Install on fresh 22.04.1 following instructions on https://github.com/osrf/vehicle_gatewayFor fresh install some required packages are missing in the instructions:
Now stuck on
|
@haslinghuis Thank you for the review. We will create a Gazebo release this week and this will simplify the instructions too. I will ping you again. |
This comment has been minimized.
This comment has been minimized.
Please provide detailed instructions here in the PR. |
@ahcorde please rebase |
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
e881a1c
to
c773153
Compare
This comment has been minimized.
This comment has been minimized.
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.
I mostly have minor suggestions for clean code formatting.
There is one line in pwmWriteMotor()
that needs attention, though (see comment about MAX_SUPPORTED_MOTORS
).
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Do you want to test this code? Here you have an automated build: |
Is there any updated documentation on how to run betaflight with Gazebo? This doc file looks outdated (7 years old) https://github.com/betaflight/betaflight/blob/master/src/main/target/SITL/README.md Also found this doc page that looks different from the previous one https://betaflight.com/docs/development/sitl . It links to a recent version of Gazebo, but listed start command is for an old version that does not work with a current version Which version of Gazebo should work with Betaflight SITL? |
If latest Gazebo does not work - we love contribution on updating the docs. |
Figured out that I need to use I will try to run it another day. |
Signed-off-by: Alejandro Hernández Cordero ahcorde@gmail.com
Related with this issue #12345
This PR update the current work done in this PR #11303 by @xuhao1 to include SITL Gazebo support.
Where is the right place to locate the documentation?