コード例 #1
0
        public GSeatControllerCore(ISimulator simulator,
                                   ISingleAxisPneumatic shoulderPneumatic,
                                   ISingleAxisPneumatic leftLegPneumatic,
                                   ISingleAxisPneumatic rightLegPneumatic,
                                   TransferCurve shoulderTransferCurve,
                                   TransferCurve legTransferCurve,
                                   float hysteresisPct)
        {
            this.simulator         = simulator;
            this.shoulderPneumatic = shoulderPneumatic;
            this.leftLegPneumatic  = leftLegPneumatic;
            this.rightLegPneumatic = rightLegPneumatic;

            this.ShoulderTPC = new TimedPressureController(this.shoulderPneumatic);
            this.LeftLegTPC  = new TimedPressureController(this.leftLegPneumatic);
            this.RightLegTPC = new TimedPressureController(this.rightLegPneumatic);

            this.shoulderBuffer = new HysteresisBuffer(hysteresisPct);
            this.leftLegBuffer  = new HysteresisBuffer(hysteresisPct);
            this.rightLegBuffer = new HysteresisBuffer(hysteresisPct);

            this.shoulderTransferCurve = shoulderTransferCurve;
            this.legTransferCurve      = legTransferCurve;
        }
コード例 #2
0
 public TimedPressureController(ISingleAxisPneumatic pneumatic)
 {
     this.pneumatic       = pneumatic;
     this.PressurePercent = 0;
 }