@openhps/core
Version:
Open Hybrid Positioning System - Core component
19 lines (15 loc) • 473 B
text/typescript
import { SensorValue } from './SensorValue';
import { SerializableObject } from '../decorators';
import { PressureUnit } from '../../utils/unit';
()
export class Pressure extends SensorValue<PressureUnit> {
constructor(value = 0, unit = PressureUnit.PASCAL) {
super(value, undefined, undefined, unit, PressureUnit.PASCAL);
}
get value(): number {
return this.x;
}
set value(x: number) {
this.x = x;
}
}