Skip to content

Commit

Permalink
fix(fmgc): raise default RA value to 2500f to enable LOC engagement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecologne committed Jan 23, 2025
1 parent 4f8d045 commit d4e8d5a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion fbw-a32nx/src/wasm/fbw_a320/src/model/FmgcComputer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ void FmgcComputer::step()
rtb_raComputationData_radio_height_ft_Data = FmgcComputer_U.in.bus_inputs.ra_own_bus.radio_height_ft.Data;
} else {
rtb_raComputationData_radio_height_ft_SSM = FmgcComputer_U.in.bus_inputs.ra_own_bus.radio_height_ft.SSM;
rtb_raComputationData_radio_height_ft_Data = 250.0F;
rtb_raComputationData_radio_height_ft_Data = 2500.0F;
}

raOwnInvalid = (raOwnInvalid && raOppInvalid);
Expand Down
80 changes: 40 additions & 40 deletions fbw-a32nx/src/wasm/fbw_a320/src/model/FmgcComputer_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,46 +81,6 @@ struct base_arinc_429

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_fmgc_b_bus_
#define DEFINED_TYPEDEF_FOR_base_fmgc_b_bus_

struct base_fmgc_b_bus
{
base_arinc_429 fac_weight_lbs;
base_arinc_429 fm_weight_lbs;
base_arinc_429 fac_cg_percent;
base_arinc_429 fm_cg_percent;
base_arinc_429 fg_radio_height_ft;
base_arinc_429 discrete_word_4;
base_arinc_429 ats_discrete_word;
base_arinc_429 discrete_word_3;
base_arinc_429 discrete_word_1;
base_arinc_429 discrete_word_2;
base_arinc_429 approach_spd_target_kn;
base_arinc_429 delta_p_ail_cmd_deg;
base_arinc_429 delta_p_splr_cmd_deg;
base_arinc_429 delta_r_cmd_deg;
base_arinc_429 delta_nose_wheel_cmd_deg;
base_arinc_429 delta_q_cmd_deg;
base_arinc_429 n1_left_percent;
base_arinc_429 n1_right_percent;
};

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_ils_bus_
#define DEFINED_TYPEDEF_FOR_base_ils_bus_

struct base_ils_bus
{
base_arinc_429 runway_heading_deg;
base_arinc_429 ils_frequency_mhz;
base_arinc_429 localizer_deviation_deg;
base_arinc_429 glideslope_deviation_deg;
};

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_fmgc_discrete_inputs_
#define DEFINED_TYPEDEF_FOR_base_fmgc_discrete_inputs_

Expand Down Expand Up @@ -165,6 +125,46 @@ struct base_fmgc_discrete_inputs

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_fmgc_b_bus_
#define DEFINED_TYPEDEF_FOR_base_fmgc_b_bus_

struct base_fmgc_b_bus
{
base_arinc_429 fac_weight_lbs;
base_arinc_429 fm_weight_lbs;
base_arinc_429 fac_cg_percent;
base_arinc_429 fm_cg_percent;
base_arinc_429 fg_radio_height_ft;
base_arinc_429 discrete_word_4;
base_arinc_429 ats_discrete_word;
base_arinc_429 discrete_word_3;
base_arinc_429 discrete_word_1;
base_arinc_429 discrete_word_2;
base_arinc_429 approach_spd_target_kn;
base_arinc_429 delta_p_ail_cmd_deg;
base_arinc_429 delta_p_splr_cmd_deg;
base_arinc_429 delta_r_cmd_deg;
base_arinc_429 delta_nose_wheel_cmd_deg;
base_arinc_429 delta_q_cmd_deg;
base_arinc_429 n1_left_percent;
base_arinc_429 n1_right_percent;
};

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_ils_bus_
#define DEFINED_TYPEDEF_FOR_base_ils_bus_

struct base_ils_bus
{
base_arinc_429 runway_heading_deg;
base_arinc_429 ils_frequency_mhz;
base_arinc_429 localizer_deviation_deg;
base_arinc_429 glideslope_deviation_deg;
};

#endif

#ifndef DEFINED_TYPEDEF_FOR_base_fmgc_a_bus_
#define DEFINED_TYPEDEF_FOR_base_fmgc_a_bus_

Expand Down

0 comments on commit d4e8d5a

Please sign in to comment.