Search found 3 matches
- Mon Mar 25, 2013 5:23 am
- Forum: Software development
- Topic: RCSERIAL and STANDARDTX combined
- Replies: 10
- Views: 4945
Re: RCSERIAL and STANDARDTX combined
I sloved this problem,the main function is computeRC in Rx.ino file, just add variables to control it , everythin ok, this step 1. comment #define RCSERIAL //#define RCSERIAL 2. add int only_serial = 0; in config.h file 3. modify #define STANDARD_RX in def.h file //#if !defined(SERIAL_SUM_PPM) &...
- Wed Mar 20, 2013 6:04 am
- Forum: Software development
- Topic: msp implement help
- Replies: 1
- Views: 1432
Re: msp implement help
i sloved it self
import pyserial
import struct
ser = serial.Serial('/dev/ttyUSB0', 115200)
str = struct.pack('cccBBB', '$', 'M', '<', 0, 100, 100) # simple MSP_IDENT
print ser.write(str)
ser.flush()
print ser.read(3)
import pyserial
import struct
ser = serial.Serial('/dev/ttyUSB0', 115200)
str = struct.pack('cccBBB', '$', 'M', '<', 0, 100, 100) # simple MSP_IDENT
print ser.write(str)
ser.flush()
print ser.read(3)
- Wed Mar 20, 2013 12:57 am
- Forum: Software development
- Topic: msp implement help
- Replies: 1
- Views: 1432
msp implement help
I want to implement multiwii serial protocol by pyserial import pyserial import struct ser = serial.Serial('/dev/ttyUSB0', 115200) str = struct.pack('!cccBBB', 'M', '$', '<', 0, 100, 155) # simple MSP_IDENT print ser.write(str) print ser.read(3) above program hang in ser.read.....can you help me?