-
Notifications
You must be signed in to change notification settings - Fork 100
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
Distance Sensor Capabilities #88
Conversation
State.proto and FlightControllerPlugin.cpp
This PR, and your commit needs a meaningful title, please review CONTRIBUTING.md. Your build is also failing, you can click the details to find out why. Also before opening a PR its important to first be able to verify the code otherwise there's no way for me or another reviewer to verify your code. This may include unit tests, functional tests and/or additional python scripts, that is essentially what the scripts in the /tests directory are used for. Under the PR's Verification Process should include the steps to be able to reproduce the changes to the PR. A test for this would probably look like a stub distance sensor plugin / model (these can be external to GymFC). I guess a more meaningful questions is, how are you verifying what you posted as a PR works? |
Code related to distance sensor added, using as reference the IMU and ESC parts
Noted, fixing and completing everything now |
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.
@wil3 while running build_plugin.sh, the #include DistanceSensor.pb.h (as it is with IMU) says that file or directory missing file, output error in first message
L65 commented
…ierolaz/gymfc into distance-sensor-capabilities
doesn't look like you ever modified cmakelists.txt |
Included DistanceSensor in sensor_msgs
sorry, I hadn't pull that one, still throwing same error message though |
Changed distance value from 0 to 13, its current value in State.proto
As cmakelist and distancesensor.proto are fixed now, new errors are thrown, most of them being the sensor not well declared in the flightcontrollerplugin.cpp working on them right now
|
Added distance in enum Sensors In cluded DistanceSensor.pb.h
callback to receive distance sensor values
Still getting some building errors with the new distance sensor implementation files published in the PR, any guess @wil3 ? Thanks
|
All of those errors are in reference to the new entry you added to the State.proto message. The compiler is saying they don't exist so it doesn't appear the source files for the proto are getting compiled with it. Inspect the generated build files in the build directory and confirm its being generated as expected. |
Closed as its outdated, newest in #95 |
Description of the Change
Before we implement a new distance sensor into the aircraft we first have to work on GymFC in order to have those capabilities.
-Distance Sensor Message included in State.proto
-Distance Sensor added in FlightControllerPlugin.cpp
Distance Sensor included in State.proto
Used IMU as an example in FlightControllerPlugin.cpp to add distance sensor
DistanceSensor.proto added
Verification Process
Running build_plugin.sh error