Commit bef0bcc4 authored by Sascha Niklas Schneiders's avatar Sascha Niklas Schneiders
Browse files

error is fixed now

parent 67f1d3d7
......@@ -6,10 +6,10 @@ component Not<T> {
out T out1;
implementation Math{
if in1==0 {
if in1==0
out1=1;
}else{
else
out1=0;
} end
end
}
}
......@@ -9,11 +9,11 @@ component Switch<T=B> { // if no generic is given, then default type B is taken
out T out1;
implementation Math{
if cond {
if cond
out1=in1;
}else{
else
out1=in3;
}
end
}
}
......@@ -12,8 +12,8 @@ component ComplexMatrixLeftMultiplicationAddition2{
Q^{1000,200} a = mat1;
Q^{1000,200} b = mat1;
Q^{1000,200} c = a;
Q^{1000,200} d = b;
matOut = c * mat2 + d * mat4;
Q^{1000,200} matd = b;
matOut = c * mat2 + matd * mat4;
}
}
\ No newline at end of file
......@@ -11,10 +11,10 @@ component ComplexMatrixRightMultiplicationAddition2{
Q^{200,1000} a = mat1;
Q^{200,1000} b = mat1;
Q^{200,1000} c = a;
Q^{200,1000} d = b;
Q^{200,1000} matd = b;
matOut = mat2 * c + mat4 * d;
matOut = mat2 * c + mat4 * matd;
}
}
\ No newline at end of file
......@@ -23,7 +23,7 @@ void execute()
Matrix a = mat1;
Matrix b = mat1;
Matrix c = a;
Matrix d = b;
Matrix matd = b;
matOut = mat1*(mat2+mat4);
}
......
......@@ -22,7 +22,7 @@ void execute()
Matrix a = mat1;
Matrix b = mat1;
Matrix c = a;
Matrix d = b;
Matrix matd = b;
matOut = (mat2+mat4)*mat1;
}
......
......@@ -10,12 +10,12 @@ component ConstantVelocity {
B cond = time < 1s;
if cond {
if cond
acceleration = 0 m/s^2;
}
else{
else
acceleration = 2 m/s^2;
}
end
}
}
......@@ -21,35 +21,35 @@ component SteeringControl {
B comp3 = (slf<slb) && (srf<srb);
Q(0°:-1°) resComp3 = 0°;
if comp3 {
if comp3
resComp3 = -1°;
}
else {
else
resComp3 = 0°;
}
end
Q(5°:-1°) resComp2 = 0°;
if comp2 {
if comp2
resComp2 = 5°;
}
else {
else
resComp2 = resComp3;
}
end
if comp1 {
if comp1
steering = -5°;
}
else {
else
steering = resComp2;
}
end
}
......
......@@ -8,15 +8,15 @@ for i = 1:1:8
result = result + counter;
end
if counter < 0{
if counter < 0
result = 0;
}
elseif counter < 100{
elseif counter < 100
result = counter;
}
else{
else
result = 100;
}
end
}
}
\ No newline at end of file
......@@ -11,11 +11,11 @@ component Comp1 {
out Q (0.0 : 0.1 : 100.0) out3;
implementation Math {
if in1 == 0 {
if in1 == 0
out1 = 1;
} else {
else
out1 = 0;
} end
end
out2 = -in2;
out3 = 100.0 - in3;
}
......
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