3030 Programming Quiz
Problem 1
- Configure a switch so that
- When the switch is OFF (during normal flight), the Spoiler control is disabled.
- When the switch is ON (for landing), normal operation of the Spoiler control is restored.
There are two possible solutions
Problem 2
- This is a trickier one! Configure four switches to represent a 4-bit binary number such that the value (0-15) determines the position of a servo:
- All switches OFF (0000binary = 010 ) ==> servo is at centre
- All switches ON (1111binary = 1510) ==> servo is at one end point.
- Intermediate values 1 - 14 ==> servo moves to a position between centre and end-point, proportional to value.