From 3b0a4f8c68890e49f350eda3b7c2f758116f3e56 Mon Sep 17 00:00:00 2001 From: "Andreas M. Antonopoulos" Date: Sun, 8 Jul 2012 21:45:26 -0700 Subject: [PATCH] param_parser: cosmetic Arduplane: doc fixes --- ArduPlane/Parameters.pde | 8 ++++---- Tools/autotest/param_metadata/param_parse.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ArduPlane/Parameters.pde b/ArduPlane/Parameters.pde index 25fb62210f..010e24c9e7 100644 --- a/ArduPlane/Parameters.pde +++ b/ArduPlane/Parameters.pde @@ -261,18 +261,18 @@ static const AP_Param::Info var_info[] PROGMEM = { // @DisplayName: FlightMode1 // @Values: 0:Manual,1:CIRCLE,2:STABILIZE,5:FBWA,6:FBWB,10:Auto,11:RTL,12:Loiter,15:Guided // @User: Standard - // @Description: Flight mode for switch position 2 (910 to 1230 and above 2049) + // @Description: Flight mode for switch position 1 (910 to 1230 and above 2049) GSCALAR(flight_mode1, "FLTMODE1"), - // @Param: FLTMODE3 - // @DisplayName: FlightMode1 + // @Param: FLTMODE2 + // @DisplayName: FlightMode2 // @Description: Flight mode for switch position 2 (1231 to 1360) // @Values: 0:Manual,1:CIRCLE,2:STABILIZE,5:FBWA,6:FBWB,10:Auto,11:RTL,12:Loiter,15:Guided // @User: Standard GSCALAR(flight_mode2, "FLTMODE2"), // @Param: FLTMODE3 - // @DisplayName: FlightMode1 + // @DisplayName: FlightMode3 // @Description: Flight mode for switch position 3 (1361 to 1490) // @Values: 0:Manual,1:CIRCLE,2:STABILIZE,5:FBWA,6:FBWB,10:Auto,11:RTL,12:Loiter,15:Guided // @User: Standard diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index 099fce8187..4c2691d9bc 100644 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -49,7 +49,7 @@ def wiki_parameters(g, f): t+="|| *Value* || *Meaning* ||\n" for value in values: v = value.split(':') - t+="|| "+v[0]+" || "+v[1]+" ||\n" + t+="|| "+v[0]+" || "+camelcase_escape(v[1])+" ||\n" else: t += " * %s: %s\n" % (camelcase_escape(field), wikichars_escape(param.__dict__[field])) @@ -96,7 +96,7 @@ for vehicle in vehicles: for param_match in param_matches: - p = Parameter(param_match[0]) + p = Parameter(vehicle.name+":"+param_match[0]) print p.name + ' ' field_text = param_match[1] #print "\n\nParameter: %s\n" % p.name