Skip to content

大疆Python API列表

Xuan Wu edited this page Oct 11, 2019 · 19 revisions

参考论坛帖机甲大师S1主要api汇总(武汉-总督)

系统

中文说明 英文API 参数 返回值
设置整机运动 robot.set_mode(mode_enum) rm_define.robot_mode_[gimbal_follow/chassis_follow/free]
控制计时器开始、暂停或结束计时 tools.timer_ctrl(behavior_enum) rm_define.timer_[start/stop/reset]
放大相机倍镜,局部图像更清晰 media_ctrl.zoom_value_update(value) value (int): [1, 4]
信息类: 获取计时器从开始到当前时刻的用时,返回秒数 tools.timer_current() time_stamp(float)
信息类: 获取程序运行用时,返回秒数 tools.run_time_of_program() time (float)
信息类: 获取当前的时间信息,如年/月/日/时/分/秒等 tools.get_localtime(time_enum) rm_define.localtime_[year/month/day/hour/minute/second] time(int)
信息类: 机器人启动时刻至今的时间间隔,返回累计的秒数,1)机器人的启动时刻是指上电时刻。2)如果机器人在断电后重启,会重新累计时间戳 tools.get_unixtime() time (float)
Clone this wiki locally