Skip to content

Commit 445c038

Browse files
committed
initial condition
1 parent aa03354 commit 445c038

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Kloeser2020.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ model Kloeser2020 "Bicycle model of a model race car, from Kloeser2020 paper"
1818
input Real D_der(min = -20.0, max = 20.0) "Rate of duty cycle";
1919
input Real delta_der(min = -4.0, max = 4.0) "Rate of steering angle";
2020

21-
Real D(min = -1, max = 1) "Duty cycle of electric motor";
22-
Real delta(min = -0.8, max = 0.8) "Steering angle";
21+
Real D(min = -1, max = 1, start = 0) "Duty cycle of electric motor";
22+
Real delta(min = -0.8, max = 0.8, start = 0) "Steering angle";
2323

2424
// --- Outputs ---
2525
output Real acc_long "Longitudinal acceleration";
@@ -34,10 +34,10 @@ model Kloeser2020 "Bicycle model of a model race car, from Kloeser2020 paper"
3434
output Real e_n_y "Central path normal vector, projection on world y";
3535

3636
// --- States ---
37-
Real s "Tangential position";
38-
Real n "Normal position";
39-
Real alpha "Heading";
40-
Real v "Speed";
37+
Real s(start=1) "Tangential position";
38+
Real n(start=0) "Normal position";
39+
Real alpha(start=0) "Heading";
40+
Real v(start=3) "Speed";
4141

4242
// Auxiliaries
4343
Real beta;

0 commit comments

Comments
 (0)