# signalk-derived-data
[![Greenkeeper badge](https://badges.greenkeeper.io/sbender9/signalk-derived-data.svg)](https://greenkeeper.io/)
Generates deltas for values derived from signalk values
It currently calculates:
* Outside air density (based on humidity, temperature and pressure)
* Battery Power
* Depth Below Keel (based on depth.belowSurface and design.draft.maximum)
* Depth Below Keel (based on depth.belowTransducer and depth.transducerToKeel)
* Depth Below Surface (based on depth.belowKeel and design.draft.maximum)
* Distance To Go (based on courseGreatCircle.nextPoint.position)
* Outside air dew point (based on humidity and temperature)
* Fuel economy (based on speed over ground, fuel rate)
* Propeller Slip calculation (requires defaults.json to include propulsion.\*.drive.propeller.pitch and propulsion.\*.transmission.gearRatio)
* Sets environment.sun to dawn, sunrise, day, sunset, dusk or night (based on navigation.datetime or system time and navigation.position)
* Tank Volume (based on currentLevel (requires calibration pairs (>2 for parallell sides, >3 for straight wedge and >4 for more complex shapes))
* Velocity Made Good to Course (based on courseGreatCircle.nextPoint.bearingTrue heading true and speedOverGround)
* Velocity Made Good to wind (based on wind.directionTrue and speedOverGround)
* Set and Drift (based on headingMagnetic, courseOverGroundTrue, speedThroughWater, speedOverGround, magneticVariation)
* Outside air wind chill (based on wind speed and temperature)
* True Wind Angle, Direction and Speed (based on speed through water, AWA and AWS)
* True Wind Direction (based on AWA and headingTrue)
* Ground Wind Angle and Speed (based on SOG, AWA and AWS)
* Magnetic Wind Direction (based on AWA and headingMagnetic)
* Magnetic Wind Direction (based on wind.directionTrue and magneticVarition)
* Wind Shift (experimental)
* Moon illumination and times (based on time and navigation.position)
* Sunlight Times: sunrise, sunriseEnd, goldenHourEnd, solarNoon, goldenHour, sunsetStart, sunset, dusk, nauticalDusk, night, nadir, nightEnd, nauticalDawn, dawn (based on time and navigation.position)
* Outside Heat Index (based on temperature and humidity)
* True Course Over Goround (based on courseOverGroundMagnetic and magneticVariation)
* Magnetic Course Over Ground (based on courseOverGroundTrue and magneticVariation)
To add new calculations, just create a new file under the `./calcs` directory.
For example. This is the VMG calculator.
```
module.exports = function(app) {
return {
group: 'vmg',
optionKey: 'vmg',
title: "Velocity Made Goog (based on courseGreatCircle.nextPoint.bearingTrue heading true and speedOverGround)",
derivedFrom: [ "navigation.courseGreatCircle.nextPoint.bearingTrue",
"navigation.headingTrue",
"navigation.speedOverGround" ],
calculator: function (bearingTrue, headingTrue, speedOverGround)
{
var angle = Math.abs(bearingTrue-headingTrue)
return [{ path: "navigation.courseGreatCircle.nextPoint.velocityMadeGood",
value: Math.cos(bearingTrue-headingTrue) * speedOverGround}]
}
};
}
```
没有合适的资源?快使用搜索试试~ 我知道了~
为从signalk值派生的值生成增量_lille-oe_curiosity_下载.zip
共44个文件
js:37个
yml:2个
npmignore:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 99 浏览量
2023-04-27
10:57:03
上传
评论
收藏 37KB ZIP 举报
温馨提示
为从signalk值派生的值生成增量_lille-oe_curiosity_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
为从signalk值派生的值生成增量_lille-oe_curiosity_下载.zip (44个子文件)
signalk-derived-data-master
.github
workflows
publish.yml 367B
test.yml 394B
LICENSE 11KB
package.json 2KB
.npmignore 578B
test
test.js 1KB
index.js 11KB
.gitignore 58B
README.md 3KB
calcs
cpa_tcpa.js 9KB
vmg_wind.js 672B
windDirectionMagnetic.js 763B
tankVolume2.js 655B
windChill.js 1KB
suntime.js 2KB
leeway.js 1KB
windDirection.js 1KB
moon.js 3KB
dewPoint.js 963B
headingTrue.js 915B
courseOverGroundMagnetic.js 1KB
trueWind.js 1KB
leewayAngle.js 620B
windShift.js 2KB
tankVolume.js 2KB
depthBelowKeel2.js 870B
groundWind.js 2KB
propslip.js 2KB
suncalc.js 2KB
courseData.js 3KB
fuelConsumtion.js 703B
transducerToKeel.js 826B
steer_error.js 1KB
eta.js 1KB
depthBelowSurface.js 531B
vmg.js 679B
airDensity.js 813B
heatIndex.js 2KB
batteryPower.js 596B
depthBelowKeel.js 524B
magneticVariation.js 977B
courseOverGroundTrue.js 1KB
setDrift.js 2KB
multiExample.js 753B
共 44 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功