@robotical/roboticaljs
Version:
Javascript/TS library for Robotical products
39 lines (38 loc) • 1.47 kB
TypeScript
import { RaftSystemType } from "@robotical/raftjs";
import { RaftSystemUtils, RaftEventFn } from "@robotical/raftjs";
import RICAddOnManager from "./RICAddOnManager";
import RICCommsStats from "./RICCommsStats";
import RICLEDPatternChecker from "./RICLEDPatternChecker";
import RICServoFaultDetector from "./RICServoFaultDetector";
import { RICStateInfo } from "./RICStateInfo";
export default class SystemTypeMarty implements RaftSystemType {
nameForDialogs: string;
defaultWiFiHostname: string;
firmwareDestName: string;
normalFileDestName: string;
connectorOptions: {
wsSuffix: string;
bleConnItvlMs: number;
};
BLEServiceUUIDs: string[];
BLECmdUUID: string;
BLERespUUID: string;
private _ledPatternChecker;
getLEDPatternChecker(): RICLEDPatternChecker;
private _ricStateInfo;
getRICStateInfo(): RICStateInfo;
private _addOnManager;
getAddOnManager(): RICAddOnManager;
private _ricServoFaultDetector;
getRICServoFaultDetector(): RICServoFaultDetector;
private _commsStats;
getCommsStats(): RICCommsStats;
private _onEvent;
private _systemUtils;
setup(systemUtils: RaftSystemUtils, onEvent: RaftEventFn | null): void;
getStateInfo(): RICStateInfo;
subscribeForUpdates(systemUtils: RaftSystemUtils, enable: boolean): Promise<void>;
stateIsInvalid(): void;
rxOtherMsgType(payload: Uint8Array, frameTimeMs: number): void;
deviceMgrIF: RICStateInfo;
}