How to access the high_in parameter set by set_range and set_angle function in RC_Channel class?

Hi,
I am trying to convert the pwm values from RC channel to angle reference for roll, pitch and yaw and scale the throttle command with a scaling factor. I found that there is a function named “get_control_in” that the controllers use in the code to do that. But to use the function I need to set the “high_in” value which is essential for the calculation in the “get_control_in” function. Is there any way to modify the “high_in” parameter value from parameters list?

Can anyone please help me on this?

Thanks,
Sayan

RC_Channels:set_range and set_angle are the only way to set high_in.
For example, the high_in value for throttle is set to 100 for Plane by a call in ArduPlane:RC_Channel.cpp… it’s vehicle specific and not set via parameter.

1 Like

Thanks Mark, for the clarification!

1 Like