Generator for mavlink_ftp test files

This commit is contained in:
Don Gagne 2014-09-02 15:34:02 -07:00
parent 1969c9ccf6
commit e7165d6cbf

View File

@ -0,0 +1,7 @@
import sys
print 'Arguments: file - ' + sys.argv[1] + ', length - ' + sys.argv[2]
file = open(sys.argv[1], 'w')
for i in range(int(sys.argv[2])):
b = bytearray([i & 0xFF])
file.write(b)
file.close()