my droid project code help..

building a droid that is controlled over internet using a 2/24 sabortooth motor controller a particle photon for wifi and the blynk app here is what I have so far with the code I need some help.

//Droid particle Photon sketch.
#include <blynk.h>
//------------------------------------------------------------------------------------
Servo serv;
int pos = 0;

//------------------------------------------------------------------------------------
STARTUP(WiFi.selectAntenna(ANT_EXTERNAL)); // selects the u.FL antenna

//------------------------------------------------------------------------------------
//blynk auth token
char auth = “b908e54ad8b848c688c2b15133aa8def”;

//------------------------------------------------------------------------------------
#define Relayon D3 //connect D3 pin to arduino relay
#define Joystick1 D0 // joystick forward
#define Joystick2 D1 // joystick left right
#define Headservo D2 //left right head turn
//-----------------------------------------------------------------------------------
void setup()
{
Serial.begin(9600);
delay(5000); // Allow board to settl

//-------------------------------------------------------------------------------------
serv.attach(Joystick1);
serv.attach(Joystick2);

Spark.function(“setpos”, setPos);
Spark.variable(“getpos”, &pos, INT);

//-------------------------------------------------------------------------------------
//Turn OFF any power to the pins
digitalWrite(Relayon,HIGH);

Blynk.begin(auth);

//-------------------------------------------------------------------------------------
// set all pins as output
pinMode(Relayon, OUTPUT);
pinMode(Joystick1, OUTPUT);
pinMode(Joystick2, OUTPUT);
pinMode(Headservo, OUTPUT);
}

//---------------------------------------------------------------------------------------
void loop()
{

//----------------------------------------------------------------------------------------
int setPos(String pstn)
{
pos = pstn.toInt();
serv.write(pos);
return pos;

}
//----------------------------------------------------------------------------------------
Blynk.run();
}

(deleted)

And you seem to be assuming that we all understand exactly what you mean by 'droid'.