Esempio n. 1
0
        public void TestTrimSweep()
        {
            QuadCopter model = (QuadCopter) new QuadCopter().LoadDefault();

            model.FCS.trimControl = false;
            TrimSweep(model);
        }
Esempio n. 2
0
        public override Helicopter SetupModelForSimulation()
        {
            QuadCopter model = (QuadCopter) new QuadCopter().LoadDefault();

            model.FCS.trimControl = false;
            model.TrimInit();
            model.Trim();
            return(model);
        }
Esempio n. 3
0
        public void TrimTheModel()
        {
            QuadCopter model = (QuadCopter) new QuadCopter().LoadDefault();

            model.FCS.trimControl = false;
            model.TrimInit();
            model.Trim();

            LogTrimState(model);
            AssertTrimmed(model);
        }
Esempio n. 4
0
        public void TorqueDirections()
        {
            QuadCopter model = (QuadCopter) new QuadCopter().LoadDefault();

            //model.Gravity.Enabled = true;
            //model.Collective = 0.5;
            model.Pedal = -1.0;
            model.Update(0.01);
            Console.WriteLine("F " + model.Force.ToStr());
            Console.WriteLine("Q " + model.Torque.ToStr());
            for (var i = 0; i < 4; i++)
            {
                Console.WriteLine("  CT" + i + " " + model.Rotors[i].CT.ToStr());
                Console.WriteLine("  b0" + i + " " + model.Rotors[i].beta_0.ToStr());
                Console.WriteLine("  F" + i + " " + model.Rotors[i].Force.ToStr());
                Console.WriteLine("  Q" + i + " " + model.Rotors[i].Torque.ToStr());
            }
        }
Esempio n. 5
0
 public QuadCopter()
 {
     _model = new HeliSharp.QuadCopter();
 }