Source/Drone_Main.cs
/*
		 * <summary> 
		 * Serializes the command and sends it to the mothership.
		 * </summary>
		*/
Serializes the command and sends it to the mothership.
Serializes the command and sends it to the mothership .
private void Move (int flags, double _LeftRightTilt = 0, double _FrontBackTilt = 0, double _VerticalSpeed = 0, double _AngularSpeed = 0) {
			int LeftRightTilt = DoubleRefToInt (_LeftRightTilt);
			int FrontBackTilt = DoubleRefToInt (_FrontBackTilt);
			int VerticalSpeed = DoubleRefToInt (_VerticalSpeed);
			int AngularSpeed = DoubleRefToInt (_AngularSpeed);
			AT at = new AT ("PCMD", flags, LeftRightTilt, FrontBackTilt, VerticalSpeed, AngularSpeed);
			AT buffer = new AT ("PCMD", 1, 0, 0, 0, 0);
			Sends.Send (at.Serialize ());
			Sends.Send (buffer.Serialize ());	
		}
private void Move ( int flags , double _LeftRightTilt = 0 , double _FrontBackTilt = 0 , double _VerticalSpeed = 0 , double _AngularSpeed = 0 ) { int LeftRightTilt = DoubleRefToInt ( _LeftRightTilt ) ; int FrontBackTilt = DoubleRefToInt ( _FrontBackTilt ) ; int VerticalSpeed = DoubleRefToInt ( _VerticalSpeed ) ; int AngularSpeed = DoubleRefToInt ( _AngularSpeed ) ; AT at = new AT ( " " , flags , LeftRightTilt , FrontBackTilt , VerticalSpeed , AngularSpeed ) ; AT buffer = new AT ( " " , 1 , 0 , 0 , 0 , 0 ) ; Sends . Send ( at . Serialize ( ) ) ; Sends . Send ( buffer . Serialize ( ) ) ; }
Serializes the command and sends it to the mothership.
Serializes the command and sends it to the mothership .
flags
int
_LeftRightTilt
double
_FrontBackTilt
double
_VerticalSpeed
double
_AngularSpeed
double