mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:11:36 +08:00
Calibration should not freeze anymore, ardrone flying but estimator is not able to use calibrated magnetometer data
This commit is contained in:
@@ -193,10 +193,10 @@ mc_thread_main(int argc, char *argv[])
|
||||
|
||||
/* ready, spawn pthread */
|
||||
pthread_attr_t rate_control_attr;
|
||||
// pthread_attr_init(&rate_control_attr);
|
||||
// pthread_attr_setstacksize(&rate_control_attr, 2048);
|
||||
// pthread_t rate_control_thread;
|
||||
// pthread_create(&rate_control_thread, &rate_control_attr, rate_control_thread_main, NULL);
|
||||
pthread_attr_init(&rate_control_attr);
|
||||
pthread_attr_setstacksize(&rate_control_attr, 2048);
|
||||
pthread_t rate_control_thread;
|
||||
pthread_create(&rate_control_thread, &rate_control_attr, rate_control_thread_main, NULL);
|
||||
|
||||
while (!thread_should_exit) {
|
||||
|
||||
@@ -310,7 +310,7 @@ mc_thread_main(int argc, char *argv[])
|
||||
perf_print_counter(mc_loop_perf);
|
||||
perf_free(mc_loop_perf);
|
||||
|
||||
//pthread_join(rate_control_thread, NULL);
|
||||
pthread_join(rate_control_thread, NULL);
|
||||
|
||||
fflush(stdout);
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user