-
Notifications
You must be signed in to change notification settings - Fork 30
Description
It has been pointed out that simple steering locked to a vector calculated by UPFG breaks for some vehicles. The solution is to apply a vehicle-specific transformation of the steering vector that accounts for the vehicle center of mass, and then locking the steering to that.
This should be easy to implement using an additional layer of abstraction between UPFG output and kOS cooked steering. An additional function would input the raw UPFG steering vector and output a real vector that steering would be then locked to. This function would default to an identity transform:
FUNCTION nullTransform {
DECLARE PARAMETER inputVector.
RETURN inputVector.
}
But it could be overridden by the user in the form of a delegate, for example passed through the CONTROLS lex.
Seems like a simple fix, but help with testing would be appreciated.