mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 18:10:34 +08:00
QuRT and POSIX changes - part 5
Last part of the main QuRT related changes Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
* Remote Control calibration routine
|
||||
*/
|
||||
|
||||
#include <px4_posix.h>
|
||||
#include <px4_time.h>
|
||||
|
||||
#include "rc_calibration.h"
|
||||
#include "commander_helper.h"
|
||||
|
||||
@@ -82,11 +85,11 @@ int do_trim_calibration(int mavlink_fd)
|
||||
|
||||
if (save_ret != 0) {
|
||||
mavlink_log_critical(mavlink_fd, "TRIM: SAVE FAIL");
|
||||
close(sub_man);
|
||||
px4_close(sub_man);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
mavlink_log_info(mavlink_fd, "trim cal done");
|
||||
close(sub_man);
|
||||
px4_close(sub_man);
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user