I agree, and it's most evident when command goes from turn to stop-turn and the red line goes up but the green line doesn't go down at all. I think I have to take the time to re-think all of this, starting with looking at the basic accelmix calculations to see what, if anything, it's doing with turn-in-place. I think it's not doing anything at all because the whole procedure is divided into an "if accelerating" and an "if decelerating" section, so maybe I have to add "if increasing turn" and "if decreasing turn" sections.There's a fundamental mixing error somehow.
Suppose you turn in place then let go of the stick without moving forward or back. Does the green line move down and the red line move up? Equal and opposite?
One thing about terminology I want to clear up though, or we'll forever be talking at cross purposes. If you are turning in place and transition to straight forward, until the rearward going wheel reaches 0, IT IS NOT ACCELERATING. It is going less strongly backwards, hence it is decelerating. If you go from turning in place to Throttle=0, Steering=0 both wheels are decelerating. The rearward going wheel is going less strongly backwards and the forward going wheel is going less strongly forwards.
Clearly, I've not dealt properly with turning, but could you also check the straight forward and back behavior (without turning)? Can you get decent initial acceleration without later hyper-acceleration? Can you get decent initial deceleration without later hyper-deceleration? I'd like you to check this by going straight forward and then back to 0 (not past 0) and then by going straight back and returning to 0 (not past 0). Can you get decent starting accel/decel by increasing RPMaccel/RPMdecel? and avoid the woosh effect by reducing MiAccel/MiDecel?
Also, to give me an idea of what accel and decel are needed to start and stop movement, with RPMaccel = 0 and RPMdecel = 0 what (low) values of MiAccel and MiDecel give a reasonable final acceleration, and what (high) values of MiAccel and MiDecel give a reasonable initial acceleration? I'm trying to think of some completely different ways to approach the two problems of movement start/stop and turn start/stop (starting from your notion that we should deal first with movement accelerations and then superimpose turning acceleration corrections), but I need some idea of what reasonable base values are and how much they have to be boosted.
To repeat the specific questions I'd like you to answer:
Suppose you turn in place then let go of the stick without moving forward or back. Does the green line move down and the red line move up? Equal and opposite? [You can try this with RPMaccel and RPMdecel = 0. Obviously, turning will be sluggish with increasing acceleration/deceleration over time, but I just want to know if the two lines converge properly if there's no attempt to boost things.]
Can you get decent starting accel/decel by increasing RPMaccel/RPMdecel? and avoid the woosh effect by reducing MiAccel/MiDecel? (NO TURNING)
With RPMaccel = 0 and RPMdecel = 0 what (low) values of MiAccel and MiDecel give a reasonable final acceleration, and what (high) values of MiAccel and MiDecel give a reasonable initial acceleration?
Ciao,
Lenny
