This code is flyable, but a few problems exist which cause values in the .config files to be overwritten by the defaults in the .XML file.

This commit is contained in:
jwilson
2016-02-19 16:59:49 +01:00
committed by Julian Oes
parent 8cc37db595
commit d84639f8c4
7 changed files with 171 additions and 16 deletions
+6
View File
@@ -220,6 +220,12 @@ int dspal_entry(int argc, char *argv[])
process_commands(apps, get_commands());
sleep(1); // give time for all commands to execute before starting external function
// TODO-JYW: TESTING-TESTING:
int default_mav_type = vehicle_status_s::VEHICLE_TYPE_QUADROTOR;
param_set(param_find("MAV_TYPE"), &default_mav_type);
PX4_INFO("setting default mav_type: %d", default_mav_type);
// TODO-JYW: TESTING-TESTING:
if (qurt_external_hook) {
qurt_external_hook();
}