I think that the LOW boost is actually correct. And when there's some small turn input it boosts too much.
The HIGH boost is the thing that is wrong, it didn't happen until you fixed the turn/no acc thing.
This was point 10 of the protocol and checklist. There's no user setting to adjust for this, but until you know whether the transition is too abrupt or not, I don't want to complicate things. I'm quite sure I can "mix" that transition if need be, but we don't yet really know whether it's needed.I think that the "stop turning completely" before it takes off forwards, may be a bit extreme. And not feel very natural. It should really start to do both? Not sure till I try driving it...
'added TurnSpeedTransition, set to 0 will finish turn change before starting speed change,
'set to higher values will allow more overlap (at cost of some continuing turn during changes in speed)
In a bit, I will post yet another script. It will have the boost parameters turned down, but before you fiddle with them start with Accel (adjusted to get final acceleration that you find comfortable), and only then go on to PowerAccel to get the initial acceleration you want, then BoostLimit to get proper behavior mid-acceleration.
I do this with all the scripts but don't mention it if nothing changed.
But I will if it helps!
John 11-23-2015 temp4
and
John 11-28-2015 temp5
John 11-23-2015 temp4
and
John 11-28-2015 temp5
Accel = 1200
Decel = 1100
AccelMix = 400
DecelMix = 400
'boost of accel/decel proportionate to difference between MotorCommand and MotorPower at beginning of acceleration
'and beginning of deceleration or during turn-in-place (i.e. at speeds below BoostLimit when neither accelerating nor decelerating)
PowerAccel = 200
PowerDecel = 200
BoostLimit = 100
BackStickBraking = 140SpeedPotPin = 5 'analog input pin used for SpeedPot
LeftCurrentSensorPin = 7 'analog input pin
RightCurrentSensorPin = 8 'analog input pin
AlarmPin = 6 'digital output pin used for low voltage alarm
Brake1Pin = 1 'digital output pin ??
Brake2Pin = 0 'digital output pin, 0 of only 1 brake pin used
'JOYSTICK AND SPEEDPOT SETTINGS
Damping = 1 'number of joystick readings to moving average
SpeedPotInstalled = TRUE 'Is speed potentiometer installed?
SpeedPot = 100 'default if bSpeedPotInstalled = FALSE; 90 allows some headroom for steer/mixing
SpeedPotLowFault = 30 'chair speed used if pot fails giving too low voltage
SpeedPotHighFault = 60 'chair speed used if pot fails giving too high voltage
SpeedPotFwdMax = 100 ' percent speed at highest pot setting, set <100 for lower top
' speed or if headroom needed for turning
SpeedPotFwdMin = 15
SpeedPotRevMax = 26
SpeedPotRevMin = 15
TurnPotFwdMax = 18
TurnPotFwdMin = 14
TurnPotRevMax = 16
TurnPotRevMin = 10
TurnAtFullSpeed = 100 '100=no reduction of turn rate with speed, 0=turn rate goes to 0 at full speed
' DRIVING CHARACTERISTICS
'the following override the settings in the Roboteq configuration
Accel = 1700
Decel = 1700
AccelMix = 600 '0 = no effect of M1-M2 motor power on accel/decl, 100 = full effect
'if 100 is not enough, it's OK to try values > 100
DecelMix = 600 '0 = no effect of M1-M2 motor power on accel/decl, 100 = full effect
'if 100 is not enough, it's OK to try values > 100
'boost of accel/decel proportionate to difference between MotorCommand and MotorPower at beginning of acceleration
'and beginning of deceleration
PowerAccel = 300
PowerDecel = 300
BoostLimit = 100 'currentSpeed ar which efffect of PowerAccel and TurnAccel is reduced to zero. (During
'deceleration refers to change of currentSpeed from speed at moment when deceleraton
'begins.)
'100 corresponds to 10% of max speed, 200 to 20% and so on.
' BACK STICK BRAKING
BackStickBraking = 140 'percent of added deceleration to use if Throttle crosses 0.
'effect of this is proportional to how far past 0 the stick is moved.
MotorResistance = 50 'MOTOR COMPENSATION. (SETTING THIS TOO HIGH IS DANGEROUS)
'Set to less than motor mohms and then adjust based on chair response
UseCurrentSensors = TRUE It sure dues, and the reason was obvious as soon as I looked at the code. In order to not apply one boost on top of another, the turn boost only happenedZero turn, then gun it forwards:
And if you look at the screenshot, as soon as you move stick from "full turn" to "full ahead" the turn deceleration is much slower now than doing it in place.
IF ((NOT Accelerating) AND (NOT Decelerating)) THENReturn to Everything Powerchair
Users browsing this forum: fishinjunky, JazzyBand, snaker, swalker, Yennek and 547 guests