MortenHa
05-11-2010, 12:55 PM
Hi people!
We finally wanted to move from IOcard software to the SIOC platform, and we have been writing scripts for the MCP using the data from the IOCARD.DAT file. But strangely enough, it doesn't work as planned!
We are unable to engage the autopilot using CMDA or CMDB!
Reading PM offset document for offset 0x5414, it clearly states that:
Important Note: Toggled means that the BIT CHANGE sets the mode, not just setting it to one, setting the bit back to 0 changes the state!
So a BIT0 toggle should engage the A autopilot, and a BIT1 toggle should engage the B autopilot.
This is the code:
Var 0053 name F_MC_CMDS3, Link FSUIPC_OUT , Offset $5414, Length 4
Var 0213 name PU_MC_CMDA, Link IOCARD_SW, Input 17, Type P
{
&F_MC_CMDS3 = TOGGLE 0
}
Var 0214 name PU_MC_CMDB, Link IOCARD_SW, Input 15, Type P
{
&F_MC_CMDS3 = TOGGLE 1
}
Checking with IOCP Console verifies that the BIT is toggled from "0" to "1" and then back to"0" again!
What are we doing wrong, anyone?
Morten and Lasse
Artcic Cockpit Project
Vardø
Norway
We finally wanted to move from IOcard software to the SIOC platform, and we have been writing scripts for the MCP using the data from the IOCARD.DAT file. But strangely enough, it doesn't work as planned!
We are unable to engage the autopilot using CMDA or CMDB!
Reading PM offset document for offset 0x5414, it clearly states that:
Important Note: Toggled means that the BIT CHANGE sets the mode, not just setting it to one, setting the bit back to 0 changes the state!
So a BIT0 toggle should engage the A autopilot, and a BIT1 toggle should engage the B autopilot.
This is the code:
Var 0053 name F_MC_CMDS3, Link FSUIPC_OUT , Offset $5414, Length 4
Var 0213 name PU_MC_CMDA, Link IOCARD_SW, Input 17, Type P
{
&F_MC_CMDS3 = TOGGLE 0
}
Var 0214 name PU_MC_CMDB, Link IOCARD_SW, Input 15, Type P
{
&F_MC_CMDS3 = TOGGLE 1
}
Checking with IOCP Console verifies that the BIT is toggled from "0" to "1" and then back to"0" again!
What are we doing wrong, anyone?
Morten and Lasse
Artcic Cockpit Project
Vardø
Norway