Tools: rename APMrover2 to Rover

This commit is contained in:
Peter Barker 2020-03-27 10:14:17 +11:00 committed by Randy Mackay
parent 680b6bb9a2
commit 691ae58a79
10 changed files with 17 additions and 17 deletions

View File

@ -10,14 +10,14 @@ import sys
from optparse import OptionParser
parser = OptionParser("print_version.py [options] ArduCopter|ArduPlane|APMrover2|AntennaTracker")
parser = OptionParser("print_version.py [options] ArduCopter|ArduPlane|Rover|AntennaTracker")
(opts, args) = parser.parse_args()
includefiles = {
"ArduCopter": "version.h",
"ArduPlane": "version.h",
"APMrover2": "version.h",
"Rover": "version.h",
"AntennaTracker": "version.h",
"ArduSub": "version.h",
}
@ -29,7 +29,7 @@ if len(args) > 0:
sys.exit(1)
includefilepath = "%s/%s" % (vehicle, includefiles[vehicle])
else:
# assume we are in e.g. APM/APMrover2/
# assume we are in e.g. APM/Rover/
vehicle = os.path.basename(os.getcwd())
if vehicle not in includefiles:
print("Unknown vehicle (%s) (be in a vehicle directory or supply a vehicle type as an argument)" % (vehicle,))

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
# Drive APMrover2 in SITL
# Drive Rover in SITL
from __future__ import print_function
import copy
@ -51,7 +51,7 @@ class AutoTestRover(AutoTest):
return ["ACRO", "HOLD", "MANUAL"]
def log_name(self):
return "APMrover2"
return "Rover"
def test_filepath(self):
return os.path.realpath(__file__)
@ -5127,7 +5127,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
("DownLoadLogs", "Download logs", lambda:
self.log_download(
self.buildlogs_path("APMrover2-log.bin"),
self.buildlogs_path("Rover-log.bin"),
upload_logs=len(self.fail_list) > 0)),
])
return ret

View File

@ -167,7 +167,7 @@ def param_parse_filepath():
def all_vehicles():
return ('ArduPlane',
'ArduCopter',
'APMrover2',
'Rover',
'AntennaTracker',
'ArduSub')
@ -542,7 +542,7 @@ def write_fullresults():
results.addglob('APM:Libraries documentation', 'docs/libraries/index.html')
results.addglob('APM:Plane documentation', 'docs/ArduPlane/index.html')
results.addglob('APM:Copter documentation', 'docs/ArduCopter/index.html')
results.addglob('APM:Rover documentation', 'docs/APMrover2/index.html')
results.addglob('APM:Rover documentation', 'docs/Rover/index.html')
results.addglob('APM:Sub documentation', 'docs/ArduSub/index.html')
results.addglobimage("Flight Track", '*.png')

View File

@ -19,7 +19,7 @@ def log_name(self):
class AutoTestBalanceBot(AutoTestRover):
def vehicleinfo_key(self):
return "APMrover2"
return "Rover"
def init(self):
if self.frame is None:
@ -125,7 +125,7 @@ inherit Rover's tests!'''
("DownLoadLogs", "Download logs", lambda:
self.log_download(
self.buildlogs_path("APMrover2-log.bin"),
self.buildlogs_path("Rover-log.bin"),
upload_logs=len(self.fail_list) > 0)),
])
return ret

View File

@ -248,7 +248,7 @@ specs = [
"reverse-deps": {
},
}, {
"config": 'APMrover2/config.h',
"config": 'Rover/config.h',
"autotest_target": "build.Rover",
"target_binary": "bin/ardurover",
"reverse-deps": {

View File

@ -1068,7 +1068,7 @@ class AutoTest(ABC):
return ret
def vehicle_code_dirpath(self):
'''returns path to vehicle-specific code directory e.g. ~/ardupilot/APMrover2'''
'''returns path to vehicle-specific code directory e.g. ~/ardupilot/Rover'''
dirname = self.log_name()
if dirname == "QuadPlane":
dirname = "ArduPlane"
@ -1299,7 +1299,7 @@ class AutoTest(ABC):
"ArduPlane": "Plane",
"QuadPlane": "Plane",
"Soaring": "Plane",
"APMrover2": "Rover",
"Rover": "Rover",
"AntennaTracker": "Tracker",
"ArduSub": "Sub",
}

View File

@ -83,7 +83,7 @@ def error(str_to_print):
truename_map = {
"APMrover2": "Rover",
"Rover": "Rover",
"ArduSub": "Sub",
"ArduCopter": "Copter",
"ArduPlane": "Plane",

View File

@ -248,7 +248,7 @@ class VehicleInfo(object):
},
},
},
"APMrover2": {
"Rover": {
"default_frame": "rover",
"frames": {
# ROVER

View File

@ -227,7 +227,7 @@ def kill_tasks():
'ArduPlane.elf',
'ArduCopter.elf',
'ArduSub.elf',
'APMrover2.elf',
'Rover.elf',
'AntennaTracker.elf',
'JSBSIm.exe',
'MAVProxy.exe',

View File

@ -11,4 +11,4 @@ set pth=%pth:\=/%
set drv=%CD:~0,1%
set "fullpath=/cygdrive/%drv%%pth%"
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../APMrover2 && ../Tools/autotest/sim_vehicle.py"
%CYGWIN_LOCATION%\bin\bash.exe --login -i -c "cd ""%fullpath%"" && cd ../../../Rover && ../Tools/autotest/sim_vehicle.py"