Skip to content

Commit

Permalink
fix vmg path
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Sep 9, 2024
1 parent f524277 commit 33fca31
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG: Freeboard

### v2.11.3

- **Fixed**: VMG not being displayed in course data when destination is active.

### v2.11.2

- **Updated**: Proxy mode operation is now the default and configuration option removed. (#159)
Expand All @@ -8,7 +12,7 @@
- **Updated**: When editing a route (on a touch device) `long-press` on a route point to delete it. (#169)
- **Added**: Toggle charts on/of by clicking chart boundaries on map.
- **Added**: Lock in `Follow Vessel` setting to remain in this mode when map is panned. (#185)
- **Fixed**: Not rendering laylines when preferred path is `environment.wind.directionMagnetic`.
- **Fixed**: Not rendering laylines when preferred path is `environment.wind.directionMagnetic`. (#184)
- **Fixed**: Cursor position display formatting issue when using `028°15.345'S` format. (#188)

### v2.11.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalk/freeboard-sk",
"version": "2.11.2",
"version": "2.11.3",
"description": "Openlayers chart plotter implementation for Signal K",
"keywords": [
"signalk-webapp",
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class AppInfo extends Info {
this.name = 'Freeboard-SK';
this.shortName = 'Freeboard';
this.description = `Signal K Chart Plotter.`;
this.version = '2.11.2';
this.version = '2.11.3';
this.url = 'https://github.com/signalk/freeboard-sk';
this.logo = './assets/img/app_logo.png';

Expand Down
12 changes: 5 additions & 7 deletions src/app/lib/components/dialogs/common/dialogs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,12 @@ export class ConfirmDialog implements OnInit {
</div>
</div>
</mat-dialog-content>
<mat-dialog-actions align="right">
<mat-dialog-actions align="center">
@if(data.url) {
<div class="item stretch">
<a mat-button [href]="data.url" target="_web" rel="noopener"
>Visit Website</a
>
</div>
}
<a mat-button [href]="data.url" target="_web" rel="noopener"
>Visit Website</a
>
&nbsp; }
<button mat-raised-button (click)="dialogRef.close(false)">
Close
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/map/fb-map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ export class FBMapComponent implements OnInit, OnDestroy {
typeof this.app.data.vessels.active.heading === 'number'
) {
const twd_deg = Convert.radiansToDegrees(
this.app.data.vessels.self.wind.direction
this.app.data.vessels.self.wind.direction ?? 0
);

const twd_inv = Angle.add(twd_deg, 180);
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/skstream/skstream.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class SKStreamFacade {
}
}
if (typeof v['course.velocityMadeGood'] !== 'undefined') {
this.app.data.navData.vmg = v['course.nextPoint.velocityMadeGood'];
this.app.data.navData.vmg = v['course.velocityMadeGood'];
}
if (typeof v['course.timeToGo'] !== 'undefined') {
this.app.data.navData.ttg = v['course.timeToGo'] / 60;
Expand Down

0 comments on commit 33fca31

Please sign in to comment.