|
demo-epb
v1.0
Elektrische Parkbremse - slohmaier Dev Process Demo
|
Apply/Hold/Release control of the EPB. Mehr ...
#include "epb_types.h"gehe zum Quellcode dieser Datei
Datenstrukturen | |
| struct | ApplyInputs |
Makrodefinitionen | |
| #define | APPLY_TARGET_FORCE_N 12000U /* Target clamping force per actuator */ |
| #define | APPLY_TIMEOUT_50MS 30U /* 30 * 50ms = 1500 ms */ |
| #define | HOLD_TOLERANCE_N 1200U /* 10% of target */ |
Funktionen | |
| EpbStatus | apply_ctrl_init (void) |
| void | apply_ctrl_step_50ms (const ApplyInputs *in) |
| 50 ms step function. Mehr ... | |
| EpbState | apply_ctrl_get_state (void) |
| EpbStatus | apply_ctrl_last_error (void) |
| uint32_t | apply_ctrl_get_step_count (void) |
Apply/Hold/Release control of the EPB.
ASIL: D
Definiert in Datei apply_controller.h.
| #define APPLY_TARGET_FORCE_N 12000U /* Target clamping force per actuator */ |
Definiert in Zeile 26 der Datei apply_controller.h.
| #define APPLY_TIMEOUT_50MS 30U /* 30 * 50ms = 1500 ms */ |
Definiert in Zeile 27 der Datei apply_controller.h.
| #define HOLD_TOLERANCE_N 1200U /* 10% of target */ |
Definiert in Zeile 28 der Datei apply_controller.h.
| EpbState apply_ctrl_get_state | ( | void | ) |
Definiert in Zeile 140 der Datei apply_controller.c.
Benutzt s_ctx und ApplyCtx::state.
| uint32_t apply_ctrl_get_step_count | ( | void | ) |
Definiert in Zeile 150 der Datei apply_controller.c.
Benutzt s_ctx und ApplyCtx::step_count.
| EpbStatus apply_ctrl_init | ( | void | ) |
Definiert in Zeile 55 der Datei apply_controller.c.
Benutzt EPB_OK, EPB_STATE_RELEASED, ApplyCtx::last_error, s_ctx, ApplyCtx::state, ApplyCtx::step_count und ApplyCtx::step_in_state.
| EpbStatus apply_ctrl_last_error | ( | void | ) |
Definiert in Zeile 145 der Datei apply_controller.c.
Benutzt ApplyCtx::last_error und s_ctx.
| void apply_ctrl_step_50ms | ( | const ApplyInputs * | in | ) |
50 ms step function.
Definiert in Zeile 64 der Datei apply_controller.c.
Benutzt actuator_apply(), ACTUATOR_LEFT, actuator_release(), ACTUATOR_RIGHT, actuator_stop(), apply_request_present(), APPLY_TARGET_FORCE_N, APPLY_TIMEOUT_50MS, enter_state(), EPB_EINVAL, EPB_ETIMEOUT, EPB_OK, EPB_STATE_APPLIED, EPB_STATE_APPLYING, EPB_STATE_ERROR, EPB_STATE_RELEASED, EPB_STATE_RELEASING, HOLD_TOLERANCE_N, ApplyCtx::last_error, min_force(), release_preconditions_ok(), release_request_present(), s_ctx, ApplyInputs::standstill, ApplyCtx::state, ApplyCtx::step_count und ApplyCtx::step_in_state.