Skip to content

Commit

Permalink
Update matlab model (#80)
Browse files Browse the repository at this point in the history
* Update matlab model

* Remove unnecessary changes
  • Loading branch information
kevinwidjaja21 authored Nov 11, 2023
1 parent 46e396c commit c7e73e3
Show file tree
Hide file tree
Showing 5 changed files with 768 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdw-a339x/src/wasm/fbw_a320/src/model/FacComputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ void FacComputer::step()
u0 = FacComputer_P.Constant_Value_n;
}

rtb_beDot = (rtb_beDot * rtb_beDot * 0.6125 * 122.0 / (70000.0 * Vtas) * 3.172 * (FacComputer_P.Gain_Gain_h * u0) *
3.1415926535897931 / 180.0 + (rtb_phi * 3.1415926535897931 / 180.0 * (9.81 / Vtas) - rtb_r *
rtb_beDot = (rtb_beDot * rtb_beDot * 0.6125 * 325.0 / (200000.0 * Vtas) * 3.172 * (FacComputer_P.Gain_Gain_h * u0)
* 3.1415926535897931 / 180.0 + (rtb_phi * 3.1415926535897931 / 180.0 * (9.81 / Vtas) - rtb_r *
3.1415926535897931 / 180.0)) * 180.0 / 3.1415926535897931;
} else {
rtb_beDot = 0.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef RTW_HEADER_LateralDirectLaw_private_h_
#define RTW_HEADER_LateralDirectLaw_private_h_
#include "rtwtypes.h"
#include "LateralDirectLaw_types.h"
#endif

Loading

0 comments on commit c7e73e3

Please sign in to comment.