gyro

the above message has a manual override switch. here is just the gyro code.

If sensor1 > 180 then
balancing_motor = 67
else
If sensor1 < 74 then
balancing_motor = 183
else
If (sensor1 < 137) and (sensor1 > 117) then
balancing_motor = 127
endif
endif
endif