Commit d5763822 authored by Svetlana's avatar Svetlana

refactorings in DriverController

parent e6473717
package dp.subcomponents;
component SafetyNet {
ports
in Q(0:255)^{3, 210, 280} data,
out Q(0:1) safetyLevel;
implementation Math {
safetyLevel=1.0;
}
}
......@@ -4,15 +4,15 @@ component SteeringBuffer {
ports in Q inSteerCmd,
in Z timerLeftIn,
in Z timerRightIn,
in Z laneChangeIn,
in LaneChange laneChangeIn,
out Z timerLeftOut,
out Z timerRightOut,
out Z laneChangeOut,
out LaneChange laneChangeOut,
out Q^{5} outputBuffer;
implementation Math {
static Q^{5} buffer = [0; 0; 0; 0; 0];
static Q laneChangeBuffer = 0;
static LaneChange laneChangeBuffer = NO_CHANGE;
static Z timerLeftBuffer = 0;
static Z timerRightBuffer = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment