private void DrawSlowPackets(List <SlowPacket> packets) { foreach (SlowPacket packet in packets) { for (int i = 0; i < 2; ++i) { ChartHood.WriteData(packet.temperatureSensor.hood[i] * ratios.slowTemp + ratios.slowTempFix); ChartInsAir.WriteData(packet.temperatureSensor.insAir[i] * ratios.slowTemp + ratios.slowTempFix); ChartInsWall.WriteData(packet.temperatureSensor.insWall[i] * ratios.slowTemp + ratios.slowTempFix); ChartAttAir.WriteData(packet.temperatureSensor.attAir[i] * ratios.slowTemp + ratios.slowTempFix); } ChartAttWalls1.WriteData(packet.temperatureSensor.attWalls[0] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls1.WriteData(packet.temperatureSensor.attWalls[1] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls2.WriteData(packet.temperatureSensor.attWalls[2] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls2.WriteData(packet.temperatureSensor.attWalls[3] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls3.WriteData(packet.temperatureSensor.attWalls[4] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls3.WriteData(packet.temperatureSensor.attWalls[5] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls4.WriteData(packet.temperatureSensor.attWalls[6] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls4.WriteData(packet.temperatureSensor.attWalls[7] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls5.WriteData(packet.temperatureSensor.attWalls[8] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls5.WriteData(packet.temperatureSensor.attWalls[9] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls6.WriteData(packet.temperatureSensor.attWalls[10] * ratios.slowTemp + ratios.slowTempFix); ChartAttWalls6.WriteData(packet.temperatureSensor.attWalls[11] * ratios.slowTemp + ratios.slowTempFix); for (int i = 0; i < 2; ++i) { ChartInsPresure.WriteData(packet.pressureSensor.instrument[i] * ratios.slowPress + ratios.slowPressFix); ChartAttiPresure.WriteData(packet.pressureSensor.attitudeControl[i] * ratios.slowPress + ratios.slowPressFix); } for (int i = 0; i < packet.level2Transmitter.Length; ++i) { ChartLevel2Transmitter.WriteData(packet.level2Transmitter[i] * ratios.slowPress + ratios.slowPressFix); } for (int i = 0; i < packet.gestureControlHigh.Length; ++i) { ChartGestureControlHigh.WriteData(packet.gestureControlHigh[i] * ratios.slowPress + ratios.slowPressFix); } for (int i = 0; i < packet.gestureControlLow.Length; ++i) { ChartGestureControlLow.WriteData(packet.gestureControlLow[i] * ratios.slowPress + ratios.slowPressFix); } } ChartHood.EndWrite(); ChartInsAir.EndWrite(); ChartInsWall.EndWrite(); ChartAttAir.EndWrite(); ChartAttWalls1.EndWrite(); ChartAttWalls2.EndWrite(); ChartAttWalls3.EndWrite(); ChartAttWalls4.EndWrite(); ChartAttWalls5.EndWrite(); ChartAttWalls6.EndWrite(); ChartInsPresure.EndWrite(); ChartAttiPresure.EndWrite(); ChartLevel2Transmitter.EndWrite(); ChartGestureControlHigh.EndWrite(); ChartGestureControlLow.EndWrite(); }