Skip to content

Commit 685c6f1

Browse files
authored
Rename acceleration outputs for clarity
1 parent 9d682af commit 685c6f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Kloeser2020.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ model Kloeser2020 "Bicycle model of a model race car, from Kloeser2020 paper"
2222
Real delta(min = -0.8, max = 0.8, start = 0) "Steering angle";
2323

2424
// --- Outputs ---
25-
output Real a_n "Normal (lateral) acceleration";
26-
output Real a_t "Tangential (longitudinal) acceleration";
25+
output Real acc_long "Longitudinal acceleration";
26+
output Real acc_lat "Lateral acceleration";
2727

2828
output Real p_x "car x coordinate";
2929
output Real p_y "car y coordinate";
@@ -95,8 +95,8 @@ equation
9595
der(delta) = delta_der;
9696

9797
// Outputs
98-
a_t = Fx_d/m;
99-
a_n = v*v/lr*sin(beta) + Fx_d*sin(beta)/m;
98+
acc_long = Fx_d/m;
99+
acc_lat = v*v/lr*sin(beta) + Fx_d*sin(beta)/m;
100100

101101
// s modulo 4π
102102
s_mod = s; // Note: OpenModelica FMU derivatives choke on s_mod = mod(s, 4*Modelica.Constants.pi);

0 commit comments

Comments
 (0)