Design a ladder diagram along with its truth table for the f
Design a ladder diagram along with its truth table for the following problem. To control the motion of a small robotic car, you have 3 buttons on a remote control that sends signal to the robot. Robot has two small motors attached to its wheels. To steer the robot to the left you should press and hold buttons A and C. Robot steers left if motor 1 is turned on. To steer robot to the right you should press and hold buttons B and C. Robot steers right If motor 2 is turned on. To make robot just move forward you have to turn both motors on by simultaneously pressing A and B buttons. Pressing all 3 buttons has no effect. You can start with following table and fill the rest:
Solution
Truth table:
| A | B | C | Motor1 | Motor2 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
