Skip to content

Commit

Permalink
Merge pull request #31 from tcavenezuela/task/new-plane-offsets
Browse files Browse the repository at this point in the history
chore: add new plane related offsets
  • Loading branch information
carl0shd authored Jul 10, 2024
2 parents b6c3d93 + 600964a commit e60ae12
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-trains-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fsuipc.js/api': patch
---

add plane related offsets (altitude AMSL, atltitude AGL, indicated altitude, landing rate)
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,29 @@ export const positionAttitude: OffsetList = {
value: 0x570,
name: 'altitude',
category: OffsetCategory.POSITION_ATTITUDE,
description: 'altitude - AGL',
description: 'altitude - AMSL',
type: Type.Int64,
convert: '+({VAL} * 3.28084 / (65536 * 65536)).toFixed(2)',
permission: 'rw'
}),
altitudeAgl: new Offset({
value: 0x31e4,
name: 'altitudeAgl',
category: OffsetCategory.POSITION_ATTITUDE,
description: 'altitude - radio',
type: Type.Int32,
convert: '+({VAL} * 3.28084 / 65536).toFixed(2)',
permission: 'rw'
}),
altitudeCalibrated: new Offset({
value: 0x3324,
name: 'altitudeCalibrated',
category: OffsetCategory.POSITION_ATTITUDE,
description: 'altitude - calibrated - ft - from altimeter',
type: Type.Int32,
convert: '+({VAL}).toFixed(2)',
permission: 'r'
}),
pitch: new Offset({
value: 0x578,
name: 'pitch',
Expand Down Expand Up @@ -255,5 +273,14 @@ export const positionAttitude: OffsetList = {
convert: '{VAL} / 20480',
type: Type.UInt16,
permission: 'r'
}),
landingRate: new Offset({
value: 0x030c,
name: 'landingRate',
category: OffsetCategory.POSITION_ATTITUDE,
description: 'landing rate - ft/min',
convert: '{VAL} * 60 * 3.28084 / 256',
type: Type.Int16,
permission: 'r'
})
};

0 comments on commit e60ae12

Please sign in to comment.