Using a Saitek stick, I've noticed a peculiar bug in the brakes which I
still haven't pinned down. The nasal function interpolate() works on left
wheel only, not the right wheel, making the plane twist when brakes are
applied (or released). One can see it by watching the internal properties
(controls/gear) while applying the wheel brakes. Right wheel jumps from 0.0
to 1.0 in an instant.

I've been scanning the source for assymetries on right and left brake
implemetation, and so far I've only found a line in
src/Aircraft/replay.cxx:

replay.cxx line 365 and on:
    result.ctrls.brake_left
            = weight( ctrls1.brake_left, ctrls2.brake_right, ratio );
    result.ctrls.brake_right
            = weight( ctrls1.brake_right, ctrls2.brake_right, ratio );

line 366 should probably read:
            = weight( ctrls1.brake_left, ctrls2.brake_left, ratio );

This however, is not the source of the uneven brakes bug. I'll keep
looking.

Oh, and I doubt if the js button in question should be marked as
"repeatable" when interpolate() is being used -- ?  I set repeatable to
false and the interpolation time to one second. (should perhaps be a bit
less) As it is now, the value is interpolated from the previous value to
1.0 (or 0.0) by each repeat step, which in theory takes forever...

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to