AP_HAL_PX4: helper func

This commit is contained in:
Eugene Shamaev 2018-03-11 11:50:30 +02:00 committed by Tom Pittenger
parent 0e3ad3f48d
commit 05c8d4cc36
2 changed files with 1 additions and 5 deletions

View File

@ -518,7 +518,6 @@ void PX4RCOutput::_send_outputs(void)
}
}
}
perf_end(_perf_rcout);
_last_output = now;
}

View File

@ -105,10 +105,7 @@ void PX4Scheduler::create_uavcan_thread()
pthread_attr_setschedpolicy(&thread_attr, SCHED_FIFO);
for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_DRIVERS; i++) {
if (hal.can_mgr[i] == nullptr) {
continue;
}
if (hal.can_mgr[i]->get_UAVCAN() == nullptr) {
if (AP_UAVCAN::get_uavcan(i) == nullptr) {
continue;
}
_uavcan_thread_arg *arg = new _uavcan_thread_arg;