Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Eight Available sensors Each hardware sensor provides a high ( 1 ) or low ( 0 ) output. The input interface sub - system sets
Eight Available sensors
Each hardware sensor provides a high or low output. The input interface subsystem
sets the value of the corresponding global integer variable to the respective value. The decision
control logic subsystem will read this integer to take the right decision. It is assumed that this
integer is available for C programming. The ip if subsystem keeps monitoring the sensor
hardware outputs and acts changes value of the integer variable as soon as the sensor output state
changes.
DSBF driver seat belt fastened. This sensor indicates whether the driver seat belt is
fastened or not. The sensor hardware provides high when the driver's seat belt is
fastened, low otherwise. The corresponding integer variable that reflects the physical
states inside the computer and programming world is driverseatbeltfastened The ip
if subsystem sets this integer to when DSBF output is high, and to when DSBF is low,
and the decisioncontrol subsystem code readsuses it
ER engine running. This sensor indicates whether engine is running or not. It provides
true when engine is running, false otherwise. The corresponding integer variable to read
and use is enginerunning
DC doors closed. Indicates whether all doors are closed or not. The corresponding integer
is doorsclosed
DLC door lock lever. This indicates whether the door lock lever is closed or not. To close
the electronic door locks the driver must close this door lock lever. When the cars
computer finds that door lock lever is closed it checks all other variables to assess the
situation and finally decides whether to activate the electronic door locks to lock the doors
or not. For example, if the car keys are still inside but the driver is not on seat has gone out
of car then the doors should never be locked even though the driver has closed the door
lock lever.
DOS driver on seat. This sensor indicates whether a driver is present. This sensor
provides logical high as output when a person is sitting on the drivers seat and low
if he is not on the seat.
KIC key in car. Indicates that the keys are still inside the keyhole, the corresponding
integer variable is keyincar
BP brake pedal. This indicates that the brake pedal is pressed by the driver.
CM car moving. This sensor indicates the car is moving and at least one of its wheels are
turning. The corresponding integer variable carmoving has value when the car is
moving and has value if the car is not moving.
Three Available actuators
BELL A beeperchime that soundsplays to alert the driver of any abnormalhazardous
situation as found in your car A global integer variable named bell is provided in the
computer, if your code that implements the decisioncontrol subsystem sets this variable to
then the output interface subsystem will read this value and turn on the voltage on the
electrical wire that feeds the beeperchime As a result, the beeperchime will start beeping.
The beeper will stop when the decisioncontrol subsystem code sets the value of bell to
because then the op if will turn down the electrical voltage feeding the beeper hence it
will stop. The op if keeps on monitoring the integer variable and acts change the voltage
when the integer changes its value.
DLA door lock actuator. This actuator locks the doors. A corresponding global integer
variable named doorlock is provided in the computer, if you set this integer to all the
doors are locked, it unlocks all doors when you set the value of doorlock to
BA brake actuator. This actuator will activate the disk brakes in each of the four wheels if
the global integer variable brake is set to The brake will be released when this variable
is set to by the code that implements the decisioncontrol logic subsystem.
Six Requirements
The BELL should chimesound when the driver starts the engine without fastening his
seatbelt.
The BELL should sound when the driver starts the engine without closing all the doors.
The BELL should be off as soon as the conditions change to normal, ie the two cases
above do not occur.
The doors should not lock when the driver has got out of the car, but the keys are still
inside the engine, even though the driver has closed the door lock lever.
If the driver is on the seat and requests the doors to be locked turn on the door lock lever
the doors must lock.
The brake should be engaged when the driver presses the brake pedal. Brakes should
disengage when the brake pedal is released. The brake should engage only when the car is
moving, when the car is stationary the brake should not unnecessarily engage to reduce
mechanical wear and tear of the brakes hydraulic system.
Activities to do points for a points for b and points for c & d together
a Create truth tables, one fo
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started