Skip to content

Commit

Permalink
[tools] minor update to calibrate_gyro.py, show long options in usage
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Jun 5, 2012
1 parent c316374 commit 53e3ed5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/tools/calibration/calibrate_gyro.py
Expand Up @@ -54,7 +54,7 @@


def main():
usage = "usage: %prog -i <ac_id> -t <tt_id> -a <axis> [options] log_filename.data"
usage = "usage: %prog --ac_id <ac_id> --tt_id <tt_id> --axisa <axis> [-v] log_filename.data"
parser = OptionParser(usage)
parser.add_option("-i", "--id", dest="ac_id",
action="store", type=int, default=-1,
Expand All @@ -81,9 +81,9 @@ def main():
parser.error("Please specify a *.data log file")

if options.ac_id < 0 or options.ac_id > 255:
parser.error("Specify a valid aircraft id!")
parser.error("Specify a valid aircraft id number!")
if options.tt_id < 0 or options.tt_id > 255:
parser.error("Specify a valid turntable id!")
parser.error("Specify a valid turntable id number!")
if options.verbose:
print "reading file "+filename+" for aircraft "+str(options.ac_id)+" and turntable "+str(options.tt_id)

Expand Down

0 comments on commit 53e3ed5

Please sign in to comment.