Browse Source

commander: added some comments

sbg
Julian Oes 9 years ago
parent
commit
341004f460
  1. 3
      src/modules/commander/commander.cpp

3
src/modules/commander/commander.cpp

@ -1432,6 +1432,7 @@ int commander_thread_main(int argc, char *argv[]) @@ -1432,6 +1432,7 @@ int commander_thread_main(int argc, char *argv[])
pthread_attr_setstacksize(&commander_low_prio_attr, 2880);
#ifndef __PX4_QURT
// This is not supported by QURT (yet).
struct sched_param param;
(void)pthread_attr_getschedparam(&commander_low_prio_attr, &param);
@ -2195,7 +2196,7 @@ int commander_thread_main(int argc, char *argv[]) @@ -2195,7 +2196,7 @@ int commander_thread_main(int argc, char *argv[])
if (!status.rc_input_blocked && sp_man.timestamp != 0 &&
(hrt_absolute_time() < sp_man.timestamp + (uint64_t)(rc_loss_timeout * 1e6f))) {
#else
// HACK: remove old data check due to timestamp issue in QURT
// XXX HACK: remove old data check due to timestamp issue in QURT
if (!status.rc_input_blocked && sp_man.timestamp != 0) {
#endif
/* handle the case where RC signal was regained */

Loading…
Cancel
Save