mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:43:34 +08:00
Tested mc_att_control_m and mc_pos_control_m in jmavsim.OK.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include <unistd.h>
|
||||
#include "systemlib/param/param.h"
|
||||
#include "hrt_work.h"
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
extern pthread_t _shell_task_id;
|
||||
|
||||
@@ -77,5 +78,10 @@ void init(int argc, char *argv[], const char *app_name)
|
||||
printf("App name: %s\n", app_name);
|
||||
}
|
||||
|
||||
uint64_t get_time_micros()
|
||||
{
|
||||
return hrt_absolute_time();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user