|
From: Christos D. <ole...@fa...> - 2008-05-28 22:13:53
|
Annick et Jean-Philippe wrote:
> Hi, all.
>
> Currently working on force feedback integration in Torcs,
> I am very close to the moment when I'm able to inject some effects
> into my wheel.
>
Since we already use the Pacejka formula, adding the aligning force is
trivial. I hope that it works correctly.
I guess I can export a couple of variables in some structure..
How about
struct SteeringFeedback {
float align; // magnitude of the horizontal force
float bump; // magnitude of the vertical force
float bump_frequency; // in case the force updates are too slow
};
Now, there bumps may be a bit tricky. The simulation's dt is currently
0.002 if I remember correctly. I think that the control feedback is set
to 0.01, though I could be wrong. In that case, you wouldn't need a
bump_frequency, just a magnitude for the vertical forces and then how
that is handled would depend on the actual feedback wheel used.
Are there any other forces that you'd feel on the wheel?
I think I'll add the structure in interfaces/car.h and
add it to the tPrivCar structure.
How's that?
|