|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Outputs/DigitalOutput.h"#include "../../../Inc/Systems/Controller/BrakeSystemControl.h"#include "../../../Inc/Utils/Common.h"#include "../../../Inc/Sensors/AnalogSensors/BrakePressure.h"#include "../../../Inc/Sensors/AnalogSensors/Temperature.h"
Go to the source code of this file.
Functions | |
| void | initBrakeSystemControl (BrakeSystemControl *bsc, int hz, int maxTemp, int brakeLightActivationPoint, int heavyBrakingActivationPoint, int fbp_channel, int rbp_channel, int temp_channel, int light_port) |
| Initializes the Braking System with initial settings. More... | |
| int | startBrakeSystemControl (BrakeSystemControl *bsc) |
| Starts the Brake System Controller. More... | |
| int | updateBrakeSystemControl (ControllerSystem *controller) |
| Updates the Brake System Controller. More... | |
| void | setSensorReadings (BrakeSystemControl *bsc) |
| Updates BrakeSystemStatus with current sensor data. More... | |
| void | activateBrakeLight (BrakeSystemControl *bsc) |
| Checks whether the line pressure is higher than the activation point specified by the user. More... | |
| void | inHeavyBreaking (BrakeSystemControl *bsc) |
| Checks whether the line pressure is higher than the activation point specified by the user. More... | |
| BrakeSystemStatus | checkSensorLimits (BrakeSystemControl *bsc) |
| Checks if the brake system is within the defined limits and desired ranges. More... | |
| void | setFrontPressure (BrakeSystemControl *bsc, float pressure) |
| void | setRearPressure (BrakeSystemControl *bsc, float pressure) |
| void | setTemperature (BrakeSystemControl *bsc, float temperature) |
| void activateBrakeLight | ( | BrakeSystemControl * | bsc | ) |
Checks whether the line pressure is higher than the activation point specified by the user.
| bsc | A pointer to the BrakeControl structure. |
Definition at line 71 of file BrakeSystemControl.c.


| BrakeSystemStatus checkSensorLimits | ( | BrakeSystemControl * | bsc | ) |
Checks if the brake system is within the defined limits and desired ranges.
| bsc | A pointer to the BrakeControl structure. |
Definition at line 95 of file BrakeSystemControl.c.


| void inHeavyBreaking | ( | BrakeSystemControl * | bsc | ) |
Checks whether the line pressure is higher than the activation point specified by the user.
| bsc | A pointer to the BrakeControl structure. |
Definition at line 86 of file BrakeSystemControl.c.


| void initBrakeSystemControl | ( | BrakeSystemControl * | bsc, |
| int | hz, | ||
| int | maxTemp, | ||
| int | brakeLightActivationPoint, | ||
| int | heavyBrakingActivationPoint, | ||
| int | fbp_channel, | ||
| int | rbp_channel, | ||
| int | temp_channel, | ||
| int | light_port | ||
| ) |
Initializes the Braking System with initial settings.
| bsc | A pointer to the BrakeControl structure. |
| hz | Rate at which the sensorors are called (in hz). |
| maxTemp | The maximum temperature limit set for the system (in farenheight). |
| brakeLightActivationPoint | At what voltage the brake light will activate. |
| heavyBrakingActivationPoint | At what voltage the system recognises "heavy braking". |
| fbp_channel | The channel number for the front brake pressure sensor |
| rbp_channel | The channel number for the rear brake pressure sensor |
| temp_channel | The channel number for the temperature sensor |
| light_port | The port number for the brake light |
Definition at line 7 of file BrakeSystemControl.c.


| void setFrontPressure | ( | BrakeSystemControl * | bsc, |
| float | pressure | ||
| ) |
Definition at line 118 of file BrakeSystemControl.c.


| void setRearPressure | ( | BrakeSystemControl * | bsc, |
| float | pressure | ||
| ) |
Definition at line 124 of file BrakeSystemControl.c.


| void setSensorReadings | ( | BrakeSystemControl * | bsc | ) |
Updates BrakeSystemStatus with current sensor data.
| bsc | A pointer to the BrakeControl structure. |
Definition at line 65 of file BrakeSystemControl.c.


| void setTemperature | ( | BrakeSystemControl * | bsc, |
| float | temperature | ||
| ) |
Definition at line 130 of file BrakeSystemControl.c.


| int startBrakeSystemControl | ( | BrakeSystemControl * | bsc | ) |
Starts the Brake System Controller.
| bsc | A pointer to the BrakeControl structure. |
Definition at line 35 of file BrakeSystemControl.c.

| int updateBrakeSystemControl | ( | ControllerSystem * | controller | ) |
Updates the Brake System Controller.
| controller | A pointer to the BrakeControl ControllerSystem. |
Definition at line 49 of file BrakeSystemControl.c.

