Skip to content

Commit

Permalink
fix for pitot
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Aug 22, 2023
1 parent 30f62a1 commit 2666b6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ jobs:
~/.cache/cartes/
key: traffic-${{ runner.os }}

- name: Cache folder for documentation
uses: actions/cache@v3
id: docs-folder
with:
path: |
docs/_build/
key: docs-${{ runner.os }}

- name: Ubuntu system dependencies
run: |
sudo apt update
Expand Down
4 changes: 2 additions & 2 deletions src/traffic/algorithms/openap.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def fuelflow(
if TAS is None:
CAS: tt.speed_array = self.data.get("CAS", None)
if CAS is not None:
TAS = aero.vcas2tas(CAS, altitude)
TAS = aero.cas2tas(CAS, altitude)

if TAS is None:
TAS = self.data.groundspeed # unit: knots
Expand Down Expand Up @@ -190,7 +190,7 @@ def emission(
if TAS is None:
CAS: tt.speed_array = self.data.get("CAS", None)
if CAS is not None:
TAS = aero.vcas2tas(CAS, altitude)
TAS = aero.cas2tas(CAS, altitude)

if TAS is None:
TAS = self.data.groundspeed
Expand Down

0 comments on commit 2666b6f

Please sign in to comment.