build_motors() public static method

public static build_motors ( MAVLink frame, int frame_orientation ) : MissionPlanner.HIL.Motor[]
frame MAVLink
frame_orientation int
return MissionPlanner.HIL.Motor[]
Exemplo n.º 1
0
        public MultiCopter(string frame = "quadx")
        {
            self = this;

            motors       = Motor.build_motors(MAVLink.MAV_TYPE.QUADROTOR, (int)MissionPlanner.GCSViews.ConfigurationView.ConfigFrameType.Frame.Plus);
            motor_speed  = new double[motors.Length];
            mass         = 1.5;// # Kg
            frame_height = 0.1;

            hover_throttle         = 0.51;
            terminal_velocity      = 15.0;
            terminal_rotation_rate = 4 * (360.0 * deg2rad);

            thrust_scale = (mass * gravity) / (motors.Length * hover_throttle);

            last_time = DateTime.Now;
        }
Exemplo n.º 2
0
        public MultiCopter(string frame = "quad")
        {
            self = this;

            motors       = Motor.build_motors(frame);
            motor_speed  = new double[motors.Length];
            mass         = 1.5;// # Kg
            frame_height = 0.1;

            hover_throttle         = 0.45;
            terminal_velocity      = 15.0;
            terminal_rotation_rate = 4 * (360.0 * deg2rad);

            thrust_scale = (mass * gravity) / (motors.Length * hover_throttle);

            last_time = DateTime.Now;
        }