-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
…into pr-imu-xml-mapping � Conflicts: � models/quadrotor_x/quadrotor_x.xml
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.
Thanks! LGTM!
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.
Thanks @mvacanti, looks good
<location unit="M"> | ||
<x> 0 </x> | ||
<y> 0 </y> | ||
<z> 0.345 </z> | ||
</location> |
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.
Is there a way to avoid duplicating this for the other axes?
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 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.
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.
Ok, let's keep it as is then.
<location unit="M"> | ||
<x> 0 </x> | ||
<y> 0 </y> | ||
<z> 0.345 </z> | ||
</location> |
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.
Ok, let's keep it as is then.
@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.