Or now
parent
bad2da32b4
commit
5e69055781
6
test.py
6
test.py
|
@ -3,7 +3,7 @@ import sys
|
||||||
|
|
||||||
s = serial.Serial("/dev/ttyACM0", 115200, timeout=10)
|
s = serial.Serial("/dev/ttyACM0", 115200, timeout=10)
|
||||||
|
|
||||||
s.write("r")
|
#s.write("r")
|
||||||
print s.read()
|
#print s.read()
|
||||||
s.write("a" + chr(int(sys.argv[1])))
|
s.write("a" + chr(int(sys.argv[1])))
|
||||||
print s.read()
|
#print s.read()
|
||||||
|
|
|
@ -186,7 +186,6 @@ UARTIntHandler(void)
|
||||||
else if (g_OutputControl.NextReceive.Servo1)
|
else if (g_OutputControl.NextReceive.Servo1)
|
||||||
{
|
{
|
||||||
g_OutputControl.Servo1 = (Data * 100) / 256;
|
g_OutputControl.Servo1 = (Data * 100) / 256;
|
||||||
//UARTSend("a", 1);
|
|
||||||
Sent = 1;
|
Sent = 1;
|
||||||
}
|
}
|
||||||
else if (g_OutputControl.NextReceive.Servo2)
|
else if (g_OutputControl.NextReceive.Servo2)
|
||||||
|
@ -214,10 +213,10 @@ UARTIntHandler(void)
|
||||||
{
|
{
|
||||||
g_OutputControl.NextReceive.Digital.A = 1;
|
g_OutputControl.NextReceive.Digital.A = 1;
|
||||||
}
|
}
|
||||||
else if (Data == 'r')
|
// else if (Data == 'r')
|
||||||
{
|
// {
|
||||||
UARTSend("R", 1);;
|
// UARTSend("R", 1);;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
CommitState();
|
CommitState();
|
||||||
|
|
Loading…
Reference in New Issue