px4io+pwm_out: set the PWM rate and disarmed value when a channel is first set to a servo

This should simplify the first setup a bit.
This commit is contained in:
Beat Küng
2022-07-31 11:20:57 -04:00
committed by Daniel Agar
parent f929017618
commit e7588d2da0
4 changed files with 114 additions and 2 deletions
+3
View File
@@ -193,6 +193,9 @@ public:
uint16_t &minValue(int index) { return _min_value[index]; }
uint16_t &maxValue(int index) { return _max_value[index]; }
param_t functionParamHandle(int index) const { return _param_handles[index].function; }
param_t disarmedParamHandle(int index) const { return _param_handles[index].disarmed; }
/**
* Returns the actual failsafe value taking into account the assigned function
*/