Source/Drone_Main.cs
/*
		 * <summary> 
		 * Returns the state of the drone as a formatted string.
		 * </summary>
		*/
Returns the state of the drone as a formatted string.
Returns the state of the drone as a formatted string .
public string State (bool Altitude = true, bool Battery = true, bool Flying = true, bool Command = true) {
			string state = "";
			if (Altitude == true) {
				state += String.Format ("{0} ", Status.LastAlt);
			}
			if (Battery == true) {
				state += String.Format ("{0} ", Status.Battery);
			}
			if (Flying == true) {
				state += String.Format ("{0} ", Status.Flying);
			}
			if (Command == true) {
				state += String.Format (
					"{0} {1} {2} {3} {4}",
					Status.Flags,
					Status.TiltFB,
					Status.TiltLR,
					Status.Vert,
					Status.Ang
				);
			}
			return state;
		}
public string State ( bool Altitude = true , bool Battery = true , bool Flying = true , bool Command = true ) { string state = " " ; if ( Altitude == true ) { state += String . Format ( " " , Status . LastAlt ) ; } if ( Battery == true ) { state += String . Format ( " " , Status . Battery ) ; } if ( Flying == true ) { state += String . Format ( " " , Status . Flying ) ; } if ( Command == true ) { state += String . Format ( " " , Status . Flags , Status . TiltFB , Status . TiltLR , Status . Vert , Status . Ang ) ; } return state ; }
Returns the state of the drone as a formatted string.
Returns the state of the drone as a formatted string .
Altitude
bool
Battery
bool
Flying
bool
Command
bool