Skip to content

Commit

Permalink
Issue where navigation data (bearing, DTG,
Browse files Browse the repository at this point in the history
etc to destination) was not being updated.
(closes #79)
  • Loading branch information
panaaj committed Feb 16, 2020
1 parent 193ce74 commit f3bc6b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG: Freeboard

### v1.8.3

- **Fix**: Issue where navigation data (bearing, DTG, etc to destination) was not being updated.


### v1.8.2

- **Change**: Created Routes (Draw or from GPX import) no longer create Waypoint records for first and last route coordinates. `start` and `end` attributes are set to `null`.
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": "1.8.2",
"version": "1.8.3",
"description": "Openlayers chartplotter implementation for Signal K",
"keywords": [
"signalk-webapp"
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SKVessel } from './modules/skresources/resource-classes';
export class AppInfo extends Info {

private DEV_SERVER= {
host: '172.17.0.1', //'192.168.86.32', //'172.17.0.1', // host name || ip address
host: '192.168.86.32', //'172.17.0.1', // host name || ip address
port: 3000, // port number
ssl: false
};
Expand Down Expand Up @@ -53,7 +53,7 @@ export class AppInfo extends Info {
this.name= "Freeboard";
this.shortName= "freeboard";
this.description= `Signal K Chart Plotter.`;
this.version= '1.8.2';
this.version= '1.8.3';
this.url= 'https://github.com/signalk/freeboard-sk';
this.logo= "./assets/img/app_logo.png";

Expand Down
5 changes: 1 addition & 4 deletions src/app/modules/skstream/skstream.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ export class SKStreamFacade {
[ v['course.nextPoint.position'].longitude, v['course.nextPoint.position'].latitude ]
: null;

if( !np && !this.app.data.navData.position) { return } //unchanged
if( np && this.app.data.navData.position) {
if(np[0]==this.app.data.navData.position[0] && np[1]==this.app.data.navData.position[1]) { return } //unchanged
}
if( !np && !this.app.data.navData.position) { return }
this.app.data.navData.position= np;
if(this.app.data.activeRoute && this.app.data.navData.position) {
this.updateNavData( this.skres.getActiveRouteCoords() );
Expand Down

0 comments on commit f3bc6b2

Please sign in to comment.