inav icon indicating copy to clipboard operation
inav copied to clipboard

Deprecate mid_rc setting

Open digitalentity opened this issue 8 years ago • 5 comments

Since all FC code expects RC channels to be in [1000;2000] range and we have rxrange to scale the inputs - we don't really need midrc as a setting. A hardcoded PWM_RANGE_MID define would suffice. Related to #3312

digitalentity avatar Jun 03 '18 18:06 digitalentity

Fine by me

DzikuVx avatar Jun 04 '18 12:06 DzikuVx

Great. That sucks. Now back to ground zero on the altitude hold problem. If I use mid_thr (expo mid) for my alt_hold and I have mid_thr at zero so my expo is right, then the copter gains altitude and fights the alt_hold when I try to make corrections. If I change the code to use mid_rc and rcdata[throttle] instead of rccommand then it works perfectly. Altitude hold center value needs to be referenced to middle stick position, not expo center weight value.

NeilGaede avatar Jun 08 '18 08:06 NeilGaede

@digitalentity See #3309

teckel12 avatar Jun 08 '18 11:06 teckel12

My point is that having a different neutral point for throttle expo and zero climb rate is unreasonable. For that specific bug expo code should be fixed, not a hack that will fix just althold case.

On Jun 8, 2018 1:27 PM, "Tim Eckel" [email protected] wrote:

@digitalentity https://github.com/digitalentity See #3309 https://github.com/iNavFlight/inav/issues/3309

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/3313#issuecomment-395732773, or mute the thread https://github.com/notifications/unsubscribe-auth/AKi_mw8M491lXfr2uV7lhERhsBPtwTumks5t6l-ugaJpZM4UYLPe .

digitalentity avatar Jun 08 '18 11:06 digitalentity

Completed with the merging of https://github.com/iNavFlight/inav-configurator/pull/484

fiam avatar Jun 24 '18 21:06 fiam