From 9f867a6bd0ece9ebf9942a864d9512a4838c530c Mon Sep 17 00:00:00 2001 From: Matthew Maring <56924612+hayden2000@users.noreply.github.com> Date: Thu, 11 Jun 2020 14:43:32 -0400 Subject: [PATCH] Fix nasal bug --- Nasal/FMGC/winds.nas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/FMGC/winds.nas b/Nasal/FMGC/winds.nas index 30d0f064..c0c4b50f 100644 --- a/Nasal/FMGC/winds.nas +++ b/Nasal/FMGC/winds.nas @@ -176,7 +176,7 @@ var windController = { var wind3 = wind.newcopy(me.clb_winds[n].wind3.heading, me.clb_winds[n].wind3.magnitude, me.clb_winds[n].wind3.altitude); var wind4 = wind.newcopy(me.clb_winds[n].wind4.heading, me.clb_winds[n].wind4.magnitude, me.clb_winds[n].wind4.altitude); var wind5 = wind.newcopy(me.clb_winds[n].wind5.heading, me.clb_winds[n].wind5.magnitude, me.clb_winds[n].wind5.altitude); - var sat1 = alt_wind.newcopy(me.clb_winds[n].sat1.temperature, me.clb_winds[n].sat1.altitude); + var sat1 = alt_wind.newcopy(me.clb_winds[n].sat1.temp, me.clb_winds[n].sat1.altitude); var alt1 = sat_temp.newcopy(me.clb_winds[n].alt1.heading, me.clb_winds[n].alt1.magnitude); return waypoint_winds.newcopy(id, type, includeWind, wind1, wind2, wind3, wind4, wind5, sat1, alt1); }, @@ -190,7 +190,7 @@ var windController = { var wind3 = wind.newcopy(me.crz_winds[n].wind3.heading, me.crz_winds[n].wind3.magnitude, me.crz_winds[n].wind3.altitude); var wind4 = wind.newcopy(me.crz_winds[n].wind4.heading, me.crz_winds[n].wind4.magnitude, me.crz_winds[n].wind4.altitude); var wind5 = wind.newcopy(me.crz_winds[n].wind5.heading, me.crz_winds[n].wind5.magnitude, me.crz_winds[n].wind5.altitude); - var sat1 = alt_wind.newcopy(me.crz_winds[n].sat1.temperature, me.crz_winds[n].sat1.altitude); + var sat1 = alt_wind.newcopy(me.crz_winds[n].sat1.temp, me.crz_winds[n].sat1.altitude); var alt1 = sat_temp.newcopy(me.crz_winds[n].alt1.heading, me.crz_winds[n].alt1.magnitude); return waypoint_winds.newcopy(id, type, includeWind, wind1, wind2, wind3, wind4, wind5, sat1, alt1); }, @@ -220,7 +220,7 @@ var windController = { var wind3 = wind.newcopy(me.winds[n][i].wind3.heading, me.winds[n][i].wind3.magnitude, me.winds[n][i].wind3.altitude); var wind4 = wind.newcopy(me.winds[n][i].wind4.heading, me.winds[n][i].wind4.magnitude, me.winds[n][i].wind4.altitude); var wind5 = wind.newcopy(me.winds[n][i].wind5.heading, me.winds[n][i].wind5.magnitude, me.winds[n][i].wind5.altitude); - var sat1 = alt_wind.newcopy(me.winds[n][i].sat1.temperature, me.winds[n][i].sat1.altitude); + var sat1 = alt_wind.newcopy(me.winds[n][i].sat1.temp, me.winds[n][i].sat1.altitude); var alt1 = sat_temp.newcopy(me.winds[n][i].alt1.heading, me.winds[n][i].alt1.magnitude); append(tempWind, waypoint_winds.newcopy(id, type, includeWind, wind1, wind2, wind3, wind4, wind5, sat1, alt1)); }