Function mapOsCommandResponse

  • Maps an OS command response to a specific object, effectively adding more properties to the response object, such as the computed commutation angle offset.

    Returns UnaryFunction<Observable<void | OsCommandResponse>, Observable<void | OsCommandResponse | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        registerValue: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        calibrationModeSet: boolean;
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        openLoopFieldMode: boolean;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        hrdStreamingComplete: boolean;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        motorPhaseOrder: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        commutationAngleOffset: number;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        phaseOpened: boolean;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        numberOfPolePairs: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        phaseResistance: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        phaseInductance: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
        torqueConstant: number;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
        skippedCycles: number;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        ignoringBissStatusBits: boolean;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
        systemIdentificationCompleted: boolean;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        errorSet: boolean;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        numberOfBytesWritten: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
        responseInFoeBuffer: number;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
        usingInternalEncoderVelocity: boolean;
    } | {
        command?: Uint8Array;
        data?: number[];
        errorCode?: number;
        errorDescription?: string;
        errorName?: string;
        fsBuffer?: null | Uint8Array;
        kublerRegisterValue: number;
        progress?: number;
        request: RequestStatus;
        response: Uint8Array;
    }>>

Generated using TypeDoc