Commit 9630fcac authored by fgp76's avatar fgp76

Ajout des transmission spoilers et parking brake

parent 76addf0a
......@@ -181,6 +181,12 @@
"Derive",
""}, -1, System.Drawing.Color.Black, System.Drawing.Color.DarkGray, new System.Drawing.Font("Microsoft Sans Serif", 8.25F));
System.Windows.Forms.ListViewItem listViewItem51 = new System.Windows.Forms.ListViewItem(new string[] {
"Aerofreins",
""}, -1);
System.Windows.Forms.ListViewItem listViewItem52 = new System.Windows.Forms.ListViewItem(new string[] {
"Frein de parking",
""}, -1);
System.Windows.Forms.ListViewItem listViewItem53 = new System.Windows.Forms.ListViewItem(new string[] {
"Squawk",
""}, -1, System.Drawing.Color.Black, System.Drawing.Color.DarkGray, new System.Drawing.Font("Microsoft Sans Serif", 8.25F));
this.scMainWindow = new System.Windows.Forms.SplitContainer();
......@@ -696,7 +702,9 @@
listViewItem48,
listViewItem49,
listViewItem50,
listViewItem51});
listViewItem51,
listViewItem52,
listViewItem53});
this.lvDonneesFS.Location = new System.Drawing.Point(3, 3);
this.lvDonneesFS.MultiSelect = false;
this.lvDonneesFS.Name = "lvDonneesFS";
......
......@@ -134,7 +134,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADy
CgAAAk1TRnQBSQFMAgEBBQEAARgBCQEYAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CgAAAk1TRnQBSQFMAgEBBQEAASABCQEgAQkBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
......
......@@ -307,7 +307,12 @@
this.cbNbMoteurs.Enabled = false;
this.cbNbMoteurs.FormattingEnabled = true;
this.cbNbMoteurs.Items.AddRange(new object[] {
"*"});
"*",
"0",
"1",
"2",
"3",
"4"});
this.cbNbMoteurs.Location = new System.Drawing.Point(124, 57);
this.cbNbMoteurs.Name = "cbNbMoteurs";
this.cbNbMoteurs.Size = new System.Drawing.Size(103, 21);
......
......@@ -631,6 +631,8 @@ namespace ffs2play
m_AIData.AileronPos = m_Data.AileronPos;
m_AIData.ElevatorPos = m_Data.ElevatorPos;
m_AIData.RudderPos = m_Data.RudderPos;
m_AIData.SpoilerPos = m_Data.SpoilerPos;
m_AIData.ParkingBrakePos = m_Data.ParkingBrakePos;
m_AIData.Door1Pos = m_Data.Door1Pos;
m_AIData.Door2Pos = m_Data.Door2Pos;
m_AIData.Door3Pos = m_Data.Door3Pos;
......@@ -740,6 +742,8 @@ namespace ffs2play
ElevatorPos = 0;
AileronPos = 0;
RudderPos = 0;
SpoilerPos = 0;
ParkingBrakePos = 0;
Door1Pos = 0;
Door2Pos = 0;
Door3Pos = 0;
......@@ -789,6 +793,8 @@ namespace ffs2play
ElevatorPos = Object.ElevatorPos;
AileronPos = Object.AileronPos;
RudderPos = Object.RudderPos;
SpoilerPos = Object.SpoilerPos;
ParkingBrakePos = Object.ParkingBrakePos;
Door1Pos = Object.Door1Pos;
Door2Pos = Object.Door2Pos;
Door3Pos = Object.Door3Pos;
......@@ -834,6 +840,8 @@ namespace ffs2play
ElevatorPos = Object.ElevatorPos;
AileronPos = Object.AileronPos;
RudderPos = Object.RudderPos;
SpoilerPos = Object.SpoilerPos;
ParkingBrakePos = Object.ParkingBrakePos;
Door1Pos = Object.Door1Pos;
Door2Pos = Object.Door2Pos;
Door3Pos = Object.Door3Pos;
......@@ -897,7 +905,11 @@ namespace ffs2play
public double AileronPos;
[ProtoMember(17)]
public double RudderPos;
[ProtoMember(18)]
[ProtoMember(40)]
public double SpoilerPos;
[ProtoMember(41)]
public double ParkingBrakePos;
[ProtoMember(18)]
public int Door1Pos;
[ProtoMember(19)]
public int Door2Pos;
......
......@@ -33,6 +33,6 @@ using System.Resources;
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.10.0")]
[assembly: AssemblyFileVersion("1.0.10.0")]
[assembly: AssemblyVersion("1.0.11.0")]
[assembly: AssemblyFileVersion("1.0.11.0")]
[assembly: NeutralResourcesLanguageAttribute("fr")]
......@@ -308,8 +308,6 @@ namespace ffs2play
cmd.CommandType = CommandType.Text;
cmd.CommandText = "create table if not exists Remplacement (TitreDistant varchar(256) UNIQUE, TitreLocal varchar(256), Sim varchar(16))";
cmd.ExecuteNonQuery();
cmd = m_DB.CreateCommand();
cmd.CommandType = CommandType.Text;
m_Initialized = true;
return;
}
......
......@@ -139,7 +139,13 @@ namespace ffs2play
case "Derive":
Sub.Text = string.Format("{0:0.000}", GetLastState().RudderPos);
break;
case "Squawk":
case "Aerofreins":
Sub.Text = string.Format("{0:0.000}", GetLastState().SpoilerPos);
break;
case "Frein de parking":
Sub.Text = string.Format("{0:0.000}", GetLastState().ParkingBrakePos);
break;
case "Squawk":
Sub.Text = string.Format("{0:0}", Outils.ConvertToBinaryCodedDecimal(GetLastState().Squawk));
break;
default:
......
......@@ -292,6 +292,8 @@ namespace ffs2play
Dernier.ElevatorPos = Donnees.ElevatorPos;
Dernier.AileronPos = Donnees.AileronPos;
Dernier.RudderPos = Donnees.RudderPos;
Dernier.SpoilerPos = Donnees.SpoilerPos;
Dernier.ParkingBrakePos = Donnees.ParkingBrakePos;
Dernier.Door1Pos = Donnees.Door1Pos;
Dernier.Door2Pos = Donnees.Door2Pos;
Dernier.Door3Pos = Donnees.Door3Pos;
......@@ -461,6 +463,8 @@ public class AnalyseurStateEvent : EventArgs
ElevatorPos = 0;
AileronPos = 0;
RudderPos = 0;
SpoilerPos = 0;
ParkingBrakePos = 0;
Door1Pos = 0;
Door2Pos = 0;
Door3Pos = 0;
......@@ -525,6 +529,8 @@ public class AnalyseurStateEvent : EventArgs
ElevatorPos = Object.ElevatorPos;
AileronPos = Object.AileronPos;
RudderPos = Object.RudderPos;
SpoilerPos = Object.SpoilerPos;
ParkingBrakePos = Object.ParkingBrakePos;
Door1Pos = Object.Door1Pos;
Door2Pos = Object.Door2Pos;
Door3Pos = Object.Door3Pos;
......@@ -598,6 +604,8 @@ public class AnalyseurStateEvent : EventArgs
public double ElevatorPos;
public double AileronPos;
public double RudderPos;
public double SpoilerPos;
public double ParkingBrakePos;
public int Door1Pos;
public int Door2Pos;
public int Door3Pos;
......
......@@ -209,6 +209,8 @@ namespace ffs2play
public double ElevatorPos;
public double AileronPos;
public double RudderPos;
public double SpoilerPos;
public double ParkingBrakePos;
public int Door1Pos;
public int Door2Pos;
public int Door3Pos;
......@@ -241,6 +243,8 @@ namespace ffs2play
public double ElevatorPos;
public double AileronPos;
public double RudderPos;
public double SpoilerPos;
public double ParkingBrakePos;
public int Door1Pos;
public int Door2Pos;
public int Door3Pos;
......@@ -576,6 +580,8 @@ namespace ffs2play
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "ELEVATOR POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "AILERON POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "RUDDER POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "SPOILERS HANDLE POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "BRAKE PARKING POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "EXIT OPEN:0", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "EXIT OPEN:1", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.PERIODIQUE, "EXIT OPEN:2", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
......@@ -604,6 +610,8 @@ namespace ffs2play
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "ELEVATOR POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "AILERON POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "RUDDER POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "SPOILERS HANDLE POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "BRAKE PARKING POSITION", "Position", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "EXIT OPEN:0", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "EXIT OPEN:1", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
m_scConnection.AddToDataDefinition(DEFINITIONS_ID.AI_MOVE, "EXIT OPEN:2", "Percent", SIMCONNECT_DATATYPE.INT32, 0.0f, SimConnect.SIMCONNECT_UNUSED);
......
......@@ -42,4 +42,6 @@ Notes de r
1.0.9 : Résolution BUG FSX et suppression du freeze detect
1.0.10 : Création Filtre de recherche pour le remplacement des AI
\ No newline at end of file
1.0.10 : Création Filtre de recherche pour le remplacement des AI
1.0.11 : Ajout transmission des spoilers et le parking brake pour les animations
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment