master
q3k 2012-11-11 12:34:42 +01:00
parent bad2da32b4
commit 5e69055781
2 changed files with 7 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import sys
s = serial.Serial("/dev/ttyACM0", 115200, timeout=10)
s.write("r")
print s.read()
#s.write("r")
#print s.read()
s.write("a" + chr(int(sys.argv[1])))
print s.read()
#print s.read()

View File

@ -186,7 +186,6 @@ UARTIntHandler(void)
else if (g_OutputControl.NextReceive.Servo1)
{
g_OutputControl.Servo1 = (Data * 100) / 256;
//UARTSend("a", 1);
Sent = 1;
}
else if (g_OutputControl.NextReceive.Servo2)
@ -214,10 +213,10 @@ UARTIntHandler(void)
{
g_OutputControl.NextReceive.Digital.A = 1;
}
else if (Data == 'r')
{
UARTSend("R", 1);;
}
// else if (Data == 'r')
// {
// UARTSend("R", 1);;
// }
}
CommitState();