@betaflight/api
Version:
A high-level API to read data from betaflight flight controllers
17 lines (16 loc) • 1.88 kB
TypeScript
import { BatteryConfig, BatteryState, CurrentMeterConfig, CurrentMeters, LegacyCurrentMeterConfig, LegacyVoltageMeterConfig, MeterIndentiers, VoltageMeterConfig, VoltageMeters, BatteryCurrentMeterSources, BatteryVoltageMeterSources } from "./types";
export type { BatteryConfig, BatteryState, CurrentMeterConfig, CurrentMeters, LegacyCurrentMeterConfig, LegacyVoltageMeterConfig, VoltageMeterConfig, VoltageMeters, };
export { MeterIndentiers, BatteryCurrentMeterSources, BatteryVoltageMeterSources, };
export declare const readVoltageMeters: (port: string) => Promise<VoltageMeters[]>;
export declare const readCurrentMeters: (port: string) => Promise<CurrentMeters[]>;
export declare const readLegacyVoltageMeterConfig: (port: string) => Promise<LegacyVoltageMeterConfig>;
export declare const writeLegacyVoltageMeterConfig: (port: string, config: LegacyVoltageMeterConfig) => Promise<void>;
export declare const readVoltageMeterConfigs: (port: string) => Promise<VoltageMeterConfig[]>;
export declare const writeVoltageMeterConfig: (port: string, id: MeterIndentiers, config: Omit<VoltageMeterConfig, "id" | "sensorType">) => Promise<void>;
export declare const readLegacyCurrentMeterConfig: (port: string) => Promise<LegacyCurrentMeterConfig>;
export declare const writeLegacyCurrentMeterConfig: (port: string, config: LegacyCurrentMeterConfig) => Promise<void>;
export declare const readCurrentMeterConfigs: (port: string) => Promise<CurrentMeterConfig[]>;
export declare const writeCurrentMeterConfig: (port: string, id: MeterIndentiers, config: Omit<CurrentMeterConfig, "id" | "sensorType">) => Promise<void>;
export declare const readBatteryState: (port: string) => Promise<BatteryState>;
export declare const readBatteryConfig: (port: string) => Promise<BatteryConfig>;
export declare const writeBatteryConfig: (port: string, config: BatteryConfig) => Promise<void>;