ardupilot开发 --- 风机不停机巡检 篇

在哪里创建的siyi实例?

ardupilot开发 --- 风机不停机巡检 篇_第1张图片

如何传递飞控的时间戳给siyi相机?

ardupilot开发 --- 风机不停机巡检 篇_第2张图片
ardupilot开发 --- 风机不停机巡检 篇_第3张图片

AP_RTC_ENABLED在waf编译时配置为1??
如何配置?

在lua脚本中如何获取这个时间AP::rtc().get_utc_usec(utc_usec)???

在这里插入图片描述

include AP_RTC/AP_RTC.h depends AP_RTC_ENABLED
include AP_RTC/AP_RTC_config.h
singleton AP_RTC depends AP_RTC_ENABLED
singleton AP_RTC rename rtc
singleton AP_RTC method clock_s_to_date_fields boolean uint32_t'skip_check uint16_t'Null uint8_t'Null uint8_t'Null uint8_t'Null uint8_t'Null uint8_t'Null uint8_t'Null
singleton AP_RTC method date_fields_to_clock_s uint32_t uint16_t'skip_check int8_t'skip_check uint8_t'skip_check uint8_t'skip_check uint8_t'skip_check uint8_t'skip_check

主要是这两个函数:
date_fields_to_clock_s
clock_s_to_date_fields

在lua中如何创建一个txt文件记录照片信息?

绑定:

include AP_Filesystem/AP_Filesystem.h depends AP_FILESYSTEM_FILE_READING_ENABLED
include AP_Filesystem/AP_Filesystem_config.h
userdata AP_Filesystem::stat_t depends AP_FILESYSTEM_FILE_READING_ENABLED
userdata AP_Filesystem::stat_t rename stat_t
userdata AP_Filesystem::stat_t field size uint32_t read
userdata AP_Filesystem::stat_t field mode int32_t read
userdata AP_Filesystem::stat_t field mtime uint32_t read
userdata AP_Filesystem::stat_t field atime uint32_t read
userdata AP_Filesystem::stat_t field ctime uint32_t read
userdata AP_Filesystem::stat_t method is_directory boolean

singleton AP_Filesystem rename fs
singleton AP_Filesystem method stat boolean string AP_Filesystem::stat_t'Null

例子:
logging.lua

你可能感兴趣的:(Ardupilot)