提出问题提出问题
 

已答复Setting lights

  • 2008年9月30日 18:20Pittsburgh 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I am looking through the SimConnect variables, and I see that all of the lights data is unsettable. Is there any way that can be controlled from a SimConnect client?

    Thanks, 

答案

全部回复

  • 2008年10月1日 4:41Tim Gregson [MSFT] 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复
    Hi Pittsburgh,

    You have to use the SimConnect_TransmitClientEvent function (with appropriate mapping and whatnot that the event system requires, check out the Event samples in the SDK).  And see the Aircraft Lights section of the Event IDs list.

    Tim
    http://beatlesblog.spaces.live.com/
  • 2008年10月30日 11:58MOV_RS 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi.

    We are also using the Light variables, and we are having some problems.

    in fact we are using the SimConnect_AddToDataDefinition function.

    hr = SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_2, "Light Strobe","Bool"); //

    and to set the variable to "0" or "1" as our hardware need we are using SimConnect_SetDataOnSimObject as in the next line.

    SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_2,SIMCONNECT_OBJECT_ID_USER,0,0,sizeof(EstructuraDeSalida),&EstructuraDeSalida);

    This are working well in most of the Light variables like in Strobe, Nav, Panel, Cabin etc, Less in the Taxi variable.

    if I try to set the Taxi variable to any value I have also the same problem. Exception = 20

    Do you know what coul be the problem??

    Thanks
    Manuel

  • 2009年5月10日 8:16Pittsburgh 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Probably a little late, but I think that is because the taxi lights have toggle events only. I don't think you can specifically set them like you can the strobes, as an example.