fix VRB wind calculations
This commit is contained in:
@@ -45,8 +45,8 @@ export function decodeMetar(metar) {
|
||||
return {
|
||||
runway: id,
|
||||
heading,
|
||||
crosswind: Math.round(crosswind),
|
||||
headwind: Math.round(headwind),
|
||||
crosswind: windDir === 'variable' ? effectiveWind : Math.round(crosswind),
|
||||
headwind: windDir === 'variable' ? 0 : Math.round(headwind),
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user