forked from CPL/Simulator
+++
This commit is contained in:
@ -139,6 +139,11 @@ namespace DroneSimulator
|
||||
|
||||
private void timer_Test_Tick(object sender, EventArgs e)
|
||||
{
|
||||
DateTime test = DateTime.Now;
|
||||
|
||||
int tim = test.Second + test.Minute * 100 + test.Hour * 10000;
|
||||
|
||||
|
||||
if (screen2D == null) return;
|
||||
|
||||
listBox_Drones.Items.Clear();
|
||||
@ -242,7 +247,7 @@ namespace DroneSimulator
|
||||
|
||||
private void numericUpDown_Acc_Update(object sender, EventArgs e)
|
||||
{
|
||||
RealMode.Accelerometer.RealSimulation=checkBox_Model_Acc_Real.Checked;
|
||||
RealMode.Accelerometer.RealSimulation = checkBox_Model_Acc_Real.Checked;
|
||||
|
||||
RealMode.Accelerometer.Freq = (uint)numericUpDown_Acc_Freq.Value;
|
||||
RealMode.Accelerometer.Noise = (float)numericUpDown_Acc_Noise.Value;
|
||||
@ -317,8 +322,23 @@ namespace DroneSimulator
|
||||
Area.Wind.Speed.To = (float)numericUpDown_Area_Wind_Speed_To.Value;
|
||||
Area.Wind.Direction = (float)numericUpDown_Area_Wind_Direction.Value;
|
||||
Area.Wind.Density = (float)numericUpDown_Area_Wind_Density.Value;
|
||||
Area.Wind.PosResist = ((float)numericUpDown_Area_Wind_PosResist.Value)/1000.0f;
|
||||
Area.Wind.RotResist = ((float)numericUpDown_Area_Wind_RotResist.Value)/1000.0f;
|
||||
Area.Wind.PosResist = ((float)numericUpDown_Area_Wind_PosResist.Value) / 1000.0f;
|
||||
Area.Wind.RotResist = ((float)numericUpDown_Area_Wind_RotResist.Value) / 1000.0f;
|
||||
}
|
||||
|
||||
private void numericUpDown_GPS_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
GPS.Home.Lat = (double)numericUpDown_GPS_Lat.Value;
|
||||
GPS.Home.Lon = (double)numericUpDown_GPS_Lon.Value;
|
||||
GPS.Home.Alt = (double)numericUpDown_GPS_Alt.Value;
|
||||
|
||||
GPS.State.Fix = (byte)numericUpDown_GPS_Fix.Value;
|
||||
GPS.State.SatVisible = (byte)numericUpDown_GPS_Vis.Value;
|
||||
GPS.State.SatUsed = (byte)numericUpDown_GPS_Use.Value;
|
||||
GPS.State.Noise = (float)numericUpDown_GPS_Noise.Value;
|
||||
GPS.State.Hdop = (float)numericUpDown_GPS_HDOP.Value;
|
||||
GPS.State.Vdop = (float)numericUpDown_GPS_VDOP.Value;
|
||||
GPS.State.Pdop = (float)numericUpDown_GPS_PDOP.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user