This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial, time | |
s = serial.Serial('COM19', baudrate=115200) | |
def cmd(c): | |
s.flushInput() # we are not reading the input so do not let the buffer grow indefinitely | |
s.write( (c + '\n').encode('ascii') ) | |
cmd('#') # activate CLI | |
time.sleep(1) # give it some time to enter CLI mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import msp, uinput, sys, time | |
if len(sys.argv) != 2: | |
print('Usage: {} SERIAL_DEVICE'.format(sys.argv[0])) | |
sys.exit(1) | |
m = msp.MultiWii(sys.argv[1]) | |
m.ser.timeout = 100 | |
events = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/* | |
This is the class found at: https://stackoverflow.com/a/1953465 | |
but modified to work with dBase level 7 dbf files. | |
*/ | |
class Prodigy_DBF { | |
private $Filename, $DB_Type, $DB_Update, $DB_Records, $DB_FirstData, $DB_RecordLength, $DB_Flags, $DB_CodePageMark, $DB_Fields, $FileHandle, $FileOpened; | |
private $Memo_Handle, $Memo_Opened, $Memo_BlockSize; |