Source/Drone_Main.cs
/*
		 * <summary>
		 * Makes the drone move forwards, only allows commands from 1 to 0.
		 * </summary>
		*/
Makes the drone move forwards, only allows commands from 1 to 0.
Makes the drone move forwards only allows commands from 1 to 0 .
public void Forwards (double amount) {
			try {
				if (amount >= 0 && amount <= 1) {
					Status.TiltFB = amount;
					Status.Flags = 1;
				} else {
					throw new CommandOutOfBounds();
				}
			} catch (Exception err) {
				Console.Error.WriteLine ("{0} Argument cannot be over 1 or negative.", err);
			}
		}
public void Forwards ( double amount ) { try { if ( amount >= 0 && amount <= 1 ) { Status . TiltFB = amount ; Status . Flags = 1 ; } else { throw new CommandOutOfBounds ( ) ; } } catch ( Exception err ) { Console . Error . WriteLine ( " " , err ) ; } }
Makes the drone move forwards, only allows commands from 1 to 0.
Makes the drone move forwards only allows commands from 1 to 0 .
amount
double