-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
SRV_Channel: convert function to AP_Int16 #13177
Conversation
@peterbarker might know about the conversion. Otherwise LGTM |
Actually, @rmackay9 knows how these conversion table thingies work. The comment in Rover's Parameters.cpp looks helpful. |
I have got all the keys, now going to try and work out the conversion Plane: Copter: Rover: Tracker: Sub: |
1a67008
to
76cb17f
Compare
I have added a attempt at a param conversion table based on the above keys, its does not seem to work, so I must have missed something somewhere |
The decision from the dev call was that @tridge would look into whether we need to change the parameter index or not. If we don't need to then we can avoid the need for parameter conversion code. |
02a1f36
to
0338a1b
Compare
I have converted this PR to new a new AP_Param::convert_parameter_width() function that simplifies things a lot, and will allow us to easily widen parameters in future without using a new parameter key. |
this allows for easy conversion of the width of a parameter without changing indexes
this also removes the old parameter conversion code used for when we first added the SERVO parameters. This was needed for conversion from Copter 3.4 and Plane 3.7
0338a1b
to
1a9a440
Compare
Fixes #12744
This is changes SERVOx_FUNCTION from AP_INT8 to AP_INT16. The param conversion does not work, I need some advice on how to do it properly.