-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
383 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import aprsPacket from './src/aprsPacket'; | ||
import aprsParser from './src/parser'; | ||
import ConversionConstantEnum from './src/ConversionConstantEnum'; | ||
import digipeater from './src/digipeater'; | ||
import telemetry from './src/telemetry'; | ||
import wx from './src/wx'; | ||
import aprsPacket from './src/aprsPacket' | ||
import aprsParser from './src/parser' | ||
import { ConversionConstantEnum, PacketTypeEnum } from './src/enums' | ||
import digipeater from './src/digipeater' | ||
import telemetry from './src/telemetry' | ||
import wx from './src/wx' | ||
|
||
export { | ||
aprsPacket | ||
, aprsParser | ||
, ConversionConstantEnum | ||
, digipeater | ||
, telemetry | ||
, wx | ||
}; | ||
aprsPacket | ||
, aprsParser | ||
, ConversionConstantEnum | ||
, digipeater | ||
, PacketTypeEnum | ||
, telemetry | ||
, wx | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/ConversionConstantEnum.ts → src/enums/ConversionConstantEnum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
const enum ConversionConstantEnum { | ||
export enum ConversionConstantEnum { | ||
KNOT_TO_KMH = 1.852 // nautical miles per hour to kilometers per hour | ||
, MPH_TO_KMH = 1.609344 // miles per hour to kilometers per hour | ||
, KMH_TO_MS = 10 / 36 // kilometers per hour to meters per second | ||
, MPH_TO_MS = MPH_TO_KMH * KMH_TO_MS // miles per hour to meters per second | ||
, HINCH_TO_MM = 0.254 // hundredths of an inch to millimeters | ||
, FEET_TO_METERS = 0.3048 | ||
} | ||
|
||
export default ConversionConstantEnum; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export enum PacketTypeEnum { | ||
CAPABILITIES = 'capabilities' | ||
, DX = 'dx' | ||
, ITEM = 'item' | ||
, LOCATION = 'location' | ||
, MESSAGE = 'message' | ||
, OBJECT = 'object' | ||
, STATUS = 'status' | ||
, TELEMETRY = 'telemetry' | ||
, TELEMETRY_MESSAGE = 'telemetry-message' | ||
, WEATHER = 'wx' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ConversionConstantEnum } from './ConversionConstantEnum' | ||
import { PacketTypeEnum } from './PacketTypeEnum' | ||
|
||
export { | ||
ConversionConstantEnum | ||
, PacketTypeEnum | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.