   {
     tm.command(f_stage);
   }
-  
 }
 
 /**

  if(abs(analogRead(A0) - throttle ) > 2)
  {
    throttle = analogRead(A0);
    // Only map from 20 to 1000 to ensure there's a dead zone we can use to
    // turn the engines off / max
    tm.command(f_setThrottle,constrain(map(throttle,20,1000,0,1000)/1000.0,0,1.0));
  }

 * ESP8266 WiFi controller for Kerbal Space Program 
 * 
 * Uses web sockets to connect to Telemachus on the host
 * 
 * If it is not on your WiFi, it will create its own.  Connect to it,
 * and set your WiFi details.  Then it will join your WiFi network.
 * 
 * Connect to the ESP8266 using your browser to specify the target IP.
 * It takes 5-10 seconds from power on to connection.
 * 
 * This example uses a button between ground and pin 5 which will stage, 
 * and a potentiometer on A0 which controls the throttle.
 * 
 * The blue LED (Pin 2) will be on when connected to Telemachus.
 * Enable DEBUG to get status messages over the serial connection
 */

// Connecting to WiFi & websocket
