Photoswitches are not self correcting

I’m having trouble with the photoswitches are not self correcting and I’m using the BASE code that they give us when it goes right it will continue to go right I changed the defaultSteeringGain to 0.65 and the speed is set to the same thing but it will not self correct is there any one who can help me its just not working
HELP:confused:

I suggest you write up your own code using truth tables
the one frc wrote is confusing and not exactly reliable in my opinion