c# interface & arduino mega 2560 r3

Hi,
c# arayüzü ile f?rças?z motor manuel nas?l kontrol edebilirim.
c # How can I check the manual interface with the brushless motor.

Example code:

#include <Servo.h>
unsigned int control=0;

Servo esc2;

int speedvalue;
int arm = 1000;
int steady = 300;
int initiate = 0;

void setup()
{
esc2.attach(9);
esc2.writeMicroseconds(arm);
Serial.begin(9600);
}

void loop()
{
if(Serial.available()>0)
{
control=Serial.read(); //First info is recorded

//birinci motor - Ba?latma
if(control==‘R’) //If R
{//?F ARASI SER? PORT

if (initiate < 1)
{
throttleUp();
initiate = 1;
}
if (initiate < 2)
{
for (int count = 0; count < 5; count++)
{
speedvalue = speedvalue + 50;
esc2.writeMicroseconds(speedvalue);
control=0;
Serial.println(speedvalue);
delay(1000);
}
initiate = 2;
}

esc2.detach();

//?F SONU SER? PORT
}

control=0;
}

}

//------------------------------------
void throttleUp()
{
speedvalue = arm;

for (int count = 0; count < steady; count++)
{

esc2.writeMicroseconds(speedvalue);

speedvalue = speedvalue + 1;
Serial.println(speedvalue);
delay(15);
}
}

c # How can I check the manual interface with the brushless motor.

I don't understand the question. Presumably, you know how to send data to the Arduino, via the serial port, and you know how to read data, on the Arduino, from the serial port.

Have the Arduino write the data of interest, whatever that is, to the serial port, and read that in your application.