#define POLL_PERIOD 20
serial = Runtime.start("serial","Serial"

COMPORT= "COM19"
BAUDRATE = 9600
#define MSP_SET_RAW_RC        200
#define MSP_SET_RAW_RC_LENGTH 16

RC_MIN = 1000
RC_MID = 1500
RC_MAX = 2000

ROLL     =  0
PITCH    =  1
YAW      =  2
THROTTLE =  3
AUX1     =  4
AUX2     =  5
AUX3     =  6
AUX4     =  7

#RC signals to send to the quad
#format: { roll, throttle, yaw, pitch, 0, 0, 0, 0 }
uint16_t rc_signals[8] = { 1234 }; 

#Buffer for storing the serializes byte form of the RC signals
uint8_t rc_bytes[16] = { 0 };

Serial.connect(COMPORT,BAUDRATE,8,1,0);

send_msp(MSP_SET_RAW_RC, rc_bytes, MSP_SET_RAW_RC_LENGTH);

def arm():

  rc_signals[THROTTLE] = RC_MIN;
  rc_signals[YAW] = RC_MAX;
  rc_signals[PITCH] = RC_MID;
  rc_signals[ROLL] = RC_MID;
  rc_signals[AUX1] = RC_MIN;
  rc_signals[AUX2] = RC_MIN;

@@ -56,16 +56,17 @@
 %22Serial%22
+)
 %0A%0ACOMPOR

Update Multiwii.py