Skip to content

C# can not read calculatorCode for PLANE LATITUDE #28

@763305292

Description

@763305292

Hi Sir,

Thank you for the DLLs you made so that we can track different variables beyond what SimConnect allows.

However, I encountered an issue where I cannot listen to (A:PLANE LATITUDE, degrees) using saveDataRequest. It always returns 0 when I try to convert the data, but the value is correct when I use 'client.getVariable(new VariableRequest("PLANE LATITUDE", "degrees", 0), out double fResult)' to retrieve the latitude.

Could you please help me? The code is as follows and thank you for your support:

var hr = client.saveDataRequest( new DataRequest( requestId: (uint)Requests.Latitude, resultType: CalcResultType.Double, calculatorCode: $"(A:PLANE LATITUDE,degrees)", valueSize: 64, period: UpdatePeriod.Tick, interval: 0, deltaEpsilon: -1.0f ) ); if (hr != HR.OK) Log($"returned error result {hr}", "!!");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions