Skip to content

Commit 803c978

Browse files
Update Lecture7.md
1 parent e4bc615 commit 803c978

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

tutorials/Lecture7.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Open and Closed Loop Control Systems
1111

12-
Open and closed loop control systems are two fundamental types of control systems used in engineering, automation, robotics, and other fields to manage the behavior of devices or processes.
12+
Open-loop and closed-loop control systems are two fundamental types of control systems used in engineering, automation, robotics, and other fields to manage the behaviour of devices or processes.
1313

1414
### Open-Loop
1515

@@ -37,15 +37,15 @@ How it works:
3737
- The actuator operates on the system.
3838
- A sensor measures the actual output.
3939
- The output is fed back and compared with the input (setpoint).
40-
- The difference (error) is used to adjust the control action to reduce the error.
40+
- The difference (error) is used to adjust the control action, thereby reducing the error.
4141

4242
Example:
4343

44-
A home thermostat works by allowing the homeowner to set a desired temperature. The system then measures the actual room temperature and adjusts the heater or cooler to reach and maintain the set temperature. As the system approaches—or overshoots—the desired temperature, it modifies its output accordingly.
44+
A home thermostat allows homeowners to set a desired temperature. The system then measures the actual room temperature and adjusts the heater or cooler to reach and maintain the set temperature. As the system approaches—or overshoots—the desired temperature, it modifies its output accordingly.
4545

4646
## State Machine
4747

48-
A state machine (also known as a finite state machine or FSM) is a computational model used to design and describe systems that can be in one of a finite number of states at any given time. It transitions between these states in response to external inputs or events such as time, button presses of sensor values.
48+
A state machine (also known as a finite state machine or FSM) is a computational model used to design and describe systems that can be in one of a finite number of states at any given time. It transitions between these states in response to external inputs or events such as time, button presses, or sensor values.
4949

5050
Key concepts:
5151

@@ -59,7 +59,7 @@ Key concepts:
5959
### Define the Controller Class and Initialiser
6060

6161
> [!Note]
62-
> The subsystems (TrafficLightSubsystem, PedestrianSubsystem) are only used by the Controller Class and are tightly coupled to it, so we will keep them in the same `controller.py` file as the Controller Class for simplicity and easier maintenance. However, students can equally abstract them to individual `*.py` files for independance.
62+
> The subsystems (TrafficLightSubsystem, PedestrianSubsystem) are only used by the Controller Class. They are tightly coupled to it, so we will keep them in the same `controller.py` file as the Controller Class for simplicity and easier maintenance. However, students can equally abstract them to individual `*.py` files for independence if they wish.
6363
6464
```python
6565
class Controller:
@@ -74,7 +74,7 @@ class Controller:
7474
buzzer,
7575
debug=False,
7676
):
77-
# Initialize subsystems
77+
# Initialise subsystems
7878
self.__traffic_lights = TrafficLightSubsystem(
7979
car_red, car_amber, car_green, debug
8080
)
@@ -92,11 +92,6 @@ class Controller:
9292

9393
```python
9494
def set_idle_state(self):
95-
"""
96-
Set system to idle state with traffic flowing and pedestrians stopped.
97-
98-
This is the default state when no pedestrian is waiting to cross.
99-
"""
10095
if self.__debug:
10196
print("System: IDLE state")
10297
self.__pedestrian_signals.show_stop()

0 commit comments

Comments
 (0)