There are two hall effect sensors on the bot, one at the top and one at the bottom. If the one at the top is triggered the lift should not be able to move up. If the lift at the bottom is triggered, the lift should not be able to move down. If you look at lift.manipulateLift() we prevent the lift from smashing but checking the encoder value, that is not always accurate. To utilize these hall effects it will require that you:
There are two hall effect sensors on the bot, one at the top and one at the bottom. If the one at the top is triggered the lift should not be able to move up. If the lift at the bottom is triggered, the lift should not be able to move down. If you look at
lift.manipulateLift()
we prevent the lift from smashing but checking the encoder value, that is not always accurate. To utilize these hall effects it will require that you:lift.manipulateLift()
so that, for example, the llift will not be able to move down if canLiftMoveDown returns false.