Example #1
0
 /// <summary>
 /// Change homing, docking and driving parameters – speed for driving commands.
 /// </summary>
 /// <returns></returns>
 public void SetTuningParameters(TuningParameters value)
 {
     MovementControl(Commands.SetTuningParameters,
                     new RequestItem("LeftRight", value.LeftRight),
                     new RequestItem("Forward", value.Forward),
                     new RequestItem("Reverse", value.Reverse),
                     new RequestItem("DriveTurn", value.DriveTurn),
                     new RequestItem("HomingTurn", value.HomingTurn),
                     new RequestItem("ManDrive", value.ManDrive),
                     new RequestItem("ManTurn", value.ManTurn),
                     new RequestItem("DockTimeout", value.DockTimeout));
 }
Example #2
0
        /// <summary>
        /// Returns homing, docking and driving parameters.
        /// </summary>
        /// <returns></returns>
        public TuningParameters GetTuningParameters()
        {
            RovioResponse    response = MovementControl(Commands.GetTuningParameters);
            TuningParameters result   = new TuningParameters
            {
                LeftRight   = byte.Parse(response["LeftRight"]),
                Forward     = byte.Parse(response["Forward"]),
                Reverse     = byte.Parse(response["Reverse"]),
                DriveTurn   = byte.Parse(response["DriveTurn"]),
                HomingTurn  = byte.Parse(response["HomingTurn"]),
                ManDrive    = byte.Parse(response["ManDrive"]),
                ManTurn     = byte.Parse(response["ManTurn"]),
                DockTimeout = int.Parse(response["DockTimeout"]),
            };

            return(result);
        }
Example #3
0
 /// <summary>
 /// Change homing, docking and driving parameters – speed for driving commands.
 /// </summary>
 /// <returns></returns>
 public void SetTuningParameters(TuningParameters value)
 {
     MovementControl(Commands.SetTuningParameters,
         new RequestItem("LeftRight", value.LeftRight),
         new RequestItem("Forward", value.Forward),
         new RequestItem("Reverse", value.Reverse),
         new RequestItem("DriveTurn", value.DriveTurn),
         new RequestItem("HomingTurn", value.HomingTurn),
         new RequestItem("ManDrive", value.ManDrive),
         new RequestItem("ManTurn", value.ManTurn),
         new RequestItem("DockTimeout", value.DockTimeout));
 }
Example #4
0
 /// <summary>
 /// Returns homing, docking and driving parameters.
 /// </summary>
 /// <returns></returns>
 public TuningParameters GetTuningParameters()
 {
     RovioResponse response = MovementControl(Commands.GetTuningParameters);
     TuningParameters result = new TuningParameters
     {
         LeftRight = byte.Parse(response["LeftRight"]),
         Forward = byte.Parse(response["Forward"]),
         Reverse = byte.Parse(response["Reverse"]),
         DriveTurn = byte.Parse(response["DriveTurn"]),
         HomingTurn = byte.Parse(response["HomingTurn"]),
         ManDrive = byte.Parse(response["ManDrive"]),
         ManTurn = byte.Parse(response["ManTurn"]),
         DockTimeout = int.Parse(response["DockTimeout"]),
     };
     return result;
 }