5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-02 22:18:28 -04:00

Tracker: create generic vehicle management and move runcam to it

add RCMapper and OSD to build
This commit is contained in:
Andy Piper 2019-12-19 22:59:06 +00:00 committed by Andrew Tridgell
parent 3ea05fa78b
commit 1b7c49b662
5 changed files with 13 additions and 1 deletions

View File

@ -413,6 +413,10 @@ const AP_Param::Info Tracker::var_info[] = {
// @Path: ../libraries/AP_Stats/AP_Stats.cpp
GOBJECT(stats, "STAT", AP_Stats),
// @Group:
// @Path: ../libraries/AP_Vehicle/AP_Vehicle.cpp
{ AP_PARAM_GROUP, "", Parameters::k_param_vehicle, (const void *)&tracker, {group_info : AP_Vehicle::var_info} },
AP_VAREND
};

View File

@ -122,7 +122,9 @@ public:
k_param_scan_speed_yaw,
k_param_scan_speed_pitch,
k_param_initial_mode,
k_param_disarm_pwm
k_param_disarm_pwm,
k_param_vehicle = 257, // vehicle common block of parameters
};
AP_Int16 format_version;

View File

@ -176,5 +176,6 @@ Tracker::Tracker(void)
}
Tracker tracker;
AP_Vehicle& vehicle = tracker;
AP_HAL_MAIN_CALLBACKS(&tracker);

View File

@ -88,6 +88,9 @@ void Tracker::init_tracker()
// initialise rc channels including setting mode
rc().init();
// run all the vehicle initialization routines
init_vehicle();
// initialise servos
init_servos();

View File

@ -10,6 +10,8 @@ def build(bld):
'AP_Beacon',
'AP_Arming',
'AP_Stats',
'AP_RCMapper',
'AP_OSD',
],
)