Ejemplo n.º 1
0
 public ActionServoRotation(String description, AX12 servomoteur, speed vitesse, int duration)
     : base(description)
 {
     this.servomoteur = servomoteur;
     this.duration    = duration;
     this.vitesse     = (int)vitesse;
 }
Ejemplo n.º 2
0
        public void AdjustSpeed()
        {
            //comboBox2.SelectedValue
            ComboboxItem item = (ComboboxItem)comboBox2.SelectedItem;

            _RenderSpeed = (speed)item.getValue();
        }
Ejemplo n.º 3
0
 public MainWindow()
 {
     InitializeComponent();
     InitComboBoxes();
     GrayPulsButtons();
     _BoardConfiguration  = new BoardConfiguration(105, 25, 100);
     _RenderSpeed         = speed.faster;
     _UserGameInfoCenter  = new UserInfoCenterM();
     _UserSteeringConsole = new UserSteeringConsoleM();
 }
Ejemplo n.º 4
0
        public int setMovingSpeed(speed vitesse)
        {
            m_speed = vitesse;
            byte len, error = 1;
            int  value = (int)vitesse;

            if (true)
            {
                byte[] buf = { 0x20, (byte)(value), (byte)(value >> 8) };
                sendCommand(m_ID, Instruction.AX_WRITE_DATA, buf);
                Thread.Sleep(100);
                getReponse(out m_ID, out len, out error, null);
            }

            return((int)error);
        }
Ejemplo n.º 5
0
 public base_personnage(string _name,int _ID,santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme, List<tool> _LT)
 {
     name = _name;
     ID = _ID;
     Santé = _Santé;
     Mana = _Mana;
     Energie = _Energie;
     Poudre = _Poudre;
     Vitess = _Vitess;
     Armor = _Armor;
     encaissement = _Encaissement;
     Speed = _Speed;
     Tenacity = _Tenacity;
     Range = _Range;
     Damage = _Damage;
     Power = _Power;
     Life_Steal = _Life_Steal;
     Vampirisme = _Vampirisme;
     List_tool = new List<tool>();
     List_tool = _LT;
 }
Ejemplo n.º 6
0
        public int setMovingSpeed(speed vitesse)
        {
            int value = (int)vitesse;

            return(setMovingSpeed(value));
        }
Ejemplo n.º 7
0
 public base_personnage(santé _Santé, mana _Mana, energie _Energie, poudre _Poudre, vitess _Vitess, armor _Armor, encaissement _Encaissement, speed _Speed, tenacity _Tenacity, range _Range, damage _Damage, power _Power, life_steal _Life_Steal, vampirisme _Vampirisme)
 {
 }
Ejemplo n.º 8
0
 velocity.Value = Math.Clamp(speed, DefaultGame.MinVelocity, DefaultGame.MaxVelocity) * direction;
Ejemplo n.º 9
0
 /// <summary>
 /// Rotation RELATIVE par rapport à la position actuelle du servo.
 /// (Passe en mode wheel si nécessaire)
 /// </summary>
 /// <param name="angle">En degrès</param>
 /// <returns>Durée en ms estimée de la rotation</returns>
 public void Rotate(speed vitesse, int duration)
 {
     Rotate((int)vitesse, duration);
 }
Ejemplo n.º 10
0
        public int setMovingSpeed(speed vitesse)
        {
            m_speed = vitesse;
            byte len, error = 1;
            int value = (int)vitesse;
            if (m_mode == mode.wheel)
            {
                byte[] buf = { 0x20, (byte)(value), (byte)(value >> 8) };
                send(m_ID, Instruction.AX_WRITE_DATA, buf);
                Thread.Sleep(100);
                getReponse(out m_ID, out len, out error, null);
            }

            return (int)error;
        }
Ejemplo n.º 11
0
 public ActionServoRotation BuildActionServoRotation(AX12 servomoteur, speed direction, int duration)
 {
     return(new ActionServoRotation(description, servomoteur, direction, duration));
 }