Skip to content
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

Enable user defined IMU Parameters from JSBSim #24

Merged
merged 8 commits into from
Oct 16, 2020

Conversation

mvacanti
Copy link
Contributor

@Jaeyoung-Lim this proposal enables the user to map custom JSBSim IMU parameters via the bridge configuration file and JSBSim system definition file. When configuration definition is not provided it will default to the "standard" inputs / behaviors. Additionally this addresses #15 by adding comments to the source and by providing user configurable location and orientation of sensors.

Copy link
Contributor

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM!

@Jaeyoung-Lim Jaeyoung-Lim requested a review from bkueng October 15, 2020 09:26
Copy link
Contributor

@bkueng bkueng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mvacanti, looks good

include/sensor_imu_plugin.h Outdated Show resolved Hide resolved
Comment on lines +18 to +22
<location unit="M">
<x> 0 </x>
<y> 0 </y>
<z> 0.345 </z>
</location>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to avoid duplicating this for the other axes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a constraint of the JSBSim accelerometer function. There are a few functions that allow XML variables to be passed so that you could accomplish something like this where the property is declared once:

                <x> <property> px4/imu/loc_x </property>  </x>
                <y> <property> px4/imu/loc_y </property>  </y>
                <z> <property> px4/imu/loc_z </property>  </z>

I dug into the backend of JSBSim (and tried a few combination of the above) and unfortunately the only input it accepts are numeric.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's keep it as is then.

Comment on lines +18 to +22
<location unit="M">
<x> 0 </x>
<y> 0 </y>
<z> 0.345 </z>
</location>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's keep it as is then.

@Jaeyoung-Lim Jaeyoung-Lim marked this pull request as ready for review October 16, 2020 08:10
@Jaeyoung-Lim Jaeyoung-Lim merged commit d60ff80 into Auterion:master Oct 16, 2020
@mvacanti mvacanti deleted the pr-imu-xml-mapping branch November 1, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants