Skip to content

Commit

Permalink
HITL: Remove hard requirement for airframes
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Dec 30, 2017
1 parent 2eb3392 commit 6a701ad
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/modules/commander/state_machine_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,23 +520,6 @@ transition_result_t hil_state_transition(hil_state_t new_state, orb_advert_t sta
int32_t hitl_on = 0;
param_get(param_find("SYS_HITL"), &hitl_on);

int32_t airframe = 0;
param_get(param_find("SYS_AUTOSTART"), &airframe);

if (!(airframe == 1000
|| airframe == 1001
|| airframe == 4001
|| airframe == 4002
|| airframe == 4010
|| airframe == 4011)) {
mavlink_log_critical(mavlink_log_pub, "Not a supported airframe config for HITL.");
ret = TRANSITION_DENIED;
break;
}

// Check for compatible airframes


if (hitl_on) {
mavlink_log_info(mavlink_log_pub, "Enabled Hardware-in-the-loop simulation (HITL).");

Expand Down

0 comments on commit 6a701ad

Please sign in to comment.