Problem
Create a program that functions as a component of a boat's rudder control system using MPLabX and PICSimLab. Utilizing a potentiometer, the system should read the rudder position 15 times per minute, between 0V (completely left) and 3V (fully right). Based on the average of the previous two samples, a 7-segment display should be updated each time the rudder position is read with the proper output direction. An "L" for left or a "R" for right should be displayed on the output if the location is outside of the center by more than 20% (1.5V). The display should output a "C" if the location is within 20% of center. When the location exceeds 20% of the center (1.5V), the output should show.