Skip to content

Commit

Permalink
Fix angle conversion (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dassencio committed Jun 18, 2024
1 parent b6fcda7 commit fc7f4d9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
with:
build_dir: app
commit_message: Deploy build from ${{github.sha}}
fqdn: www.nmeagen.org
fqdn: nmeagen.org
target_branch: gh-pages
2 changes: 1 addition & 1 deletion .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8]
python-version: [3.8, 3.9]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
csscompressor==0.9.5
html5validator==0.3.3
htmlmin==0.1.12
jsmin==2.2.2
jsmin==3.0.1
4 changes: 3 additions & 1 deletion run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const puppeteer = require('puppeteer');
// Open NMEA Generator inside a headless browser.
try {
await page.goto(`file:${path.join(__dirname, fileName)}`);
await page.waitForTimeout(1000);
await page.evaluate(() => new Promise((resolve) => {
setTimeout(resolve, 1000);
}));
} catch (error) {
console.error(`Could not open file: '${fileName}'.`);
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function timeToUtcTimeOfDay(time) {
* @return {Number} Input angle in radians.
*/
function degreesToRadians(degrees) {
return degrees / 180.0 / Math.PI;
return Math.PI * degrees / 180.0;
}

/*******************************************************************************
Expand Down

0 comments on commit fc7f4d9

Please sign in to comment.