@openattitude/steam-enginerpm-senecaii
v0.1.0
Published
Steam-style SenecaII engine RPM gauge for OpenAttitude
Readme
@openattitude/steam-enginerpm-senecaii
Copyright (c) Torsten Dreyer ([email protected]). SPDX-License-Identifier: LGPL-3.0-or-later.
Single-engine RPM tachometer (Seneca II style): needle rotation is a linear map from RPM with clamp to ±128° about the gauge center (250, 250), anchored so 300 RPM sits at the lower clamp and high RPM at full scale.
Installation
npm install @openattitude/steam-enginerpm-senecaii @openattitude/core vuePeers: vue ^3.5. installPanelMath() required.
Export
EngineRpmGauge
Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| rpm | number \| null | null | Engine speed (RPM), FG rpm. Treated as 0 when null. |
Usage
<script setup lang="ts">
import { EngineRpmGauge } from '@openattitude/steam-enginerpm-senecaii';
</script>
<template>
<EngineRpmGauge :rpm="engineRpm" />
</template>Development
npm run dev:testbed --workspace=@openattitude/steam-enginerpm-senecaii
npm run test --workspace=@openattitude/steam-enginerpm-senecaii
npm run build --workspace=@openattitude/steam-enginerpm-senecaii