资源简介
通过arduino控制DOBOT机械臂做动作;有注释,压缩包里有编好的库

代码片段和文件信息
/****************************************Copyright(c)*****************************************************
** Shenzhen Yuejiang Technology Co. LTD.
**
** http://www.dobot.cc
**
**--------------File Info---------------------------------------------------------------------------------
** File name: main.cpp
** Latest modified Date:2016-10-24
** Latest Version: V2.0.0
** Descriptions: main body
**
**--------------------------------------------------------------------------------------------------------
** Created by: liyi
** Created date: 2016-10-24
** Version: V1.0.0
** Descriptions: Command API
**--------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#include
#include
#include “command.h“
#include “Protocol.h“
#include “ProtocolID.h“
/*********************************************************************************************************
** Function name: SetEndEffectorParams
** Descriptions: Set end effector parameters
** Input parameters: endEffectorParams isQueued
** Output parameters: queuedCmdIndex
** Returned value: true
*********************************************************************************************************/
int SetEndEffectorParams(EndEffectorParams *endEffectorParams bool isQueued uint64_t *queuedCmdIndex)
{
Message tempMessage;
memset(&tempMessage 0 sizeof(Message));
tempMessage.id = ProtocolEndEffectorParams;
tempMessage.rw = true;
tempMessage.isQueued = isQueued;
tempMessage.paramsLen = sizeof(EndEffectorParams);
memcpy(tempMessage.params (uint8_t *)endEffectorParams tempMessage.paramsLen);
MessageWrite(&gSerialProtocolHandler &tempMessage);
return true;
}
/*********************************************************************************************************
** Function name: SetEndEffectorLaser
** Descriptions: Set the laser output
** Input parameters: onisQueued
** Output parameters: queuedCmdIndex
** Returned value: true
*********************************************************************************************************/
int SetEndEffectorLaser(bool on bool isQueued uint64_t *queuedCmdIndex)
{
Message tempMessage;
memset(&tempMessage 0 sizeof(Message));
tempMessage.id = ProtocolEndEffectorLaser;
tempMessage.rw = true;
tempMessage.isQueued = isQueued;
tempMessage.paramsLen = 1;
tempMessage.params[0] = on;
MessageWrite(&gSerialProtocolHandler &tempMessage);
return true;
}
/*********************************************************************************************************
** Function name: SetEndEffectorSuctionCup
** Descriptions: Set the suctioncup output
** Input parameters: suckisQueued
** O
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18383 2019-01-22 12:05 dobot_circle\command.cpp
文件 7880 2019-01-22 12:05 dobot_circle\command.h
文件 6371 2019-01-23 12:45 dobot_circle\dobot_circle.ino
文件 6516 2017-02-07 15:53 dobot_circle\FlexiTimer2.cpp
文件 518 2012-02-14 01:16 dobot_circle\FlexiTimer2.h
文件 3807 2016-11-25 20:50 dobot_circle\Message.cpp
文件 2671 2016-11-25 20:50 dobot_circle\Message.h
文件 7463 2016-11-25 20:50 dobot_circle\Packet.cpp
文件 1425 2016-11-25 20:50 dobot_circle\Packet.h
文件 3932 2019-01-18 10:03 dobot_circle\Protocol.cpp
文件 1953 2019-01-18 10:25 dobot_circle\Protocol.h
文件 2070 2017-02-20 22:12 dobot_circle\ProtocolDef.h
文件 5561 2019-01-22 10:29 dobot_circle\ProtocolID.h
文件 4348 2016-11-25 20:50 dobot_circle\RingBuffer.cpp
文件 5755 2016-11-25 20:50 dobot_circle\RingBuffer.h
目录 0 2019-01-23 12:45 dobot_circle
----------- --------- ---------- ----- ----
78653 16
- 上一篇:cqsjh5资源和搭建教程.docx
- 下一篇:南京大学CSAPP lab5-9
相关资源
- ADNS-3080光流传感器测试程序Arduino
- EESkill NRF24L01 无线模块用户手册
- Arduino nano 工程文件
- Arduino教程 Lesson 之--自制风扇
- 基于Arduino的智能环境监控系统设计
- 基于Arduino和Machtalk的温棚环境监测系
- arduino pca9685多舵机同时控制案例
- arduino技术内幕
- Arduino电子设计实战指南.零基础篇_超
- 物联网智能家居平台DIY:ARDUINO 物联网
- 实验1.zip arduino跑马灯led灯实验,串口
- opencat所有资料.zip
- arduino主机,stm8从机。I2C测试 。每次
- DS18B20_Serial_println.ino
- ps2手柄arduino库文件
- 基于手机蓝牙的arduino遥控小车
- arduino中的can库函数
- 密码+指纹锁资料包.rar
- 贝壳物联arduino esp8266 demo版本
- HMC5883L罗盘指南针模块库文件及中英文
- arduino 小贱钟源码及教程
- Atom-TMC2208Pilot在Arduino上运行的应用程
- 写字机制作方案
- PID-增量式PID和位置式PID算法实现和
- Building Wireless Sensor Networks Using Arduin
- vc控制Arduino,实现串口通信
- Arduino入门经典
- Arduino所有库.zip
- 基于STM32和arduino的MPU9250九轴传感器代
- GY-9960模块Keil 和Arduino驱动程序
评论
共有 条评论