UNPKG

@hangtime/grip-connect

Version:

Griptonite Motherboard, Tindeq Progressor, PitchSix Force Board, WHC-06, Entralpi, Climbro, mySmartBoard: Bluetooth API Force-Sensing strength analysis for climbers

16 lines 837 B
import type { ForceMeasurement, ForceUnit } from "./interfaces/callback.interface.js"; /** * Converts a force value between kg, lbs, and newtons. * @param value - The numeric force value in the source unit. * @param from - The unit of the input value. * @param to - The unit for the output value. * @returns The force value in the target unit. */ export declare function convertForce(value: number, from: ForceUnit, to: ForceUnit): number; /** * Converts all numeric force fields in a ForceMeasurement from one unit to another. * Recurses one level into distribution.left / center / right. * Used internally by the device model when building notify payloads. */ export declare function convertForceMeasurement(measurement: ForceMeasurement, from: ForceUnit, to: ForceUnit): ForceMeasurement; //# sourceMappingURL=utils.d.ts.map