# motor-servo #
## module ##
- alpha parameter configure
* alpha_setting.h
* alpha_setting.c
- alpha motion control
* alpha_motion_control.h
* alpha_motion_control.c
* alpha_motion_test.c
- encoder listening
* am335x_setting.h
* am335x_setting.c
- console listening
* cmdparser.h
* cmdparser.c
## API ##
| API | note |
|-----------------------|--------------------|
| open_dev() | 读取参数,确认配置 |
| close_dev() | |
| set_acce_time() | (0.1ms) |
| set_dece_time() | (0.1ms) |
| set_speed() | (degree/s) |
| set_max_left_point() | (degree) |
| set_max_right_point() | (degree) |
| run_to_angle() | (degree) |
| run_to_direction() | left/right |
| cancel_task() | |
| stop_run() | |
| check() | 开机检验 |
| get_status() | [角度][状态] |
note:
1. 电机 - positions/circle 40000
2. 编码器 - positions/circle 65535
3. 转速比 - motor/encoder 252.5
4. 角度: %.3f(三位小数)
5. 状态: INP(or MAXL or MAXR) EOPE(operation error) LIMI(over limit)
6. 角度帧头: $ 帧尾 '\r'
7. 状态帧头: # 帧尾 '\r'
## C99 Error ##
The timespec comes from POSIX, so you have to 'enable' POSIX definitions:
#if __STDC_VERSION__ >= 199901L
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif /* __STDC_VERSION__ */
#include <time.h>
int main()
{
struct timespec asdf;
return 0;
}
For the warning: implicit declaration of function 'usleep':
gcc -std=gnu99
## motor-client ##
the client for control the server
## References ##
<https://github.com/stephane/libmodbus>
<https://github.com/armink/EasyLogger>
<https://github.com/ndevilla/iniparser>
没有合适的资源?快使用搜索试试~ 我知道了~
基于arm-linux的伺服电机驱动开发.zip
共168个文件
c:25个
o:18个
h:17个
需积分: 5 0 下载量 81 浏览量
2024-04-29
19:45:29
上传
评论
收藏 1.94MB ZIP 举报
温馨提示
基于arm-linux的伺服电机驱动开发
资源推荐
资源详情
资源评论
收起资源包目录
基于arm-linux的伺服电机驱动开发.zip (168个子文件)
cgic.c 56KB
modbus.c 50KB
modbus-rtu.c 28KB
iniparser.c 25KB
alpha_setting.c 23KB
elog.c 19KB
am335x_setting.c 15KB
alpha_motion_control.c 14KB
main.c 13KB
cmdparser.c 13KB
dictionary.c 12KB
platforminfo.c 10KB
elog_async.c 9KB
info.c 9KB
high_level_control.c 8KB
global_setting.c 6KB
motor_term.c 5KB
elog_port.c 3KB
elog_buf.c 3KB
platop.c 3KB
elog_utils.c 3KB
modbus-data.c 3KB
client.c 2KB
shmserver.c 1KB
updatex.c 503B
WinApplication.csprojResolveAssemblyReference.cache 10KB
WinApplication.csprojResolveAssemblyReference.cache 10KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferences.cache 5KB
DesignTimeResolveAssemblyReferences.cache 5KB
DesignTimeResolveAssemblyReferences.cache 5KB
DesignTimeResolveAssemblyReferences.cache 5KB
WinApplication.csproj.GenerateResource.Cache 975B
WinApplication.csproj.GenerateResource.Cache 975B
WinApplication.csproj.GenerateResource.Cache 975B
WinApplication.csproj.GenerateResource.Cache 975B
Form1.Designer.cs 27KB
Form1.cs 27KB
Resources.Designer.cs 3KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
Program.cs 476B
WinApplication.csproj 6KB
bootstrap.css 143KB
bootstrap.min.css 118KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
Properties.Resources.Designer.cs.dll 5KB
Properties.Resources.Designer.cs.dll 5KB
glyphicons-halflings-regular.eot 20KB
WinApplication.exe 27KB
WinApplication.exe 27KB
PlatformTool.exe 25KB
PlatformTool.exe 25KB
WinApplication.exe 22KB
WinApplication.exe 22KB
WinApplication.exe 21KB
PlatformTool.vshost.exe 11KB
WinApplication.vshost.exe 11KB
PlatformTool.vshost.exe 11KB
WinApplication.vshost.exe 11KB
fstab 115B
alpha_setting.h 17KB
iniparser.h 13KB
elog.h 9KB
modbus.h 8KB
cgic.h 7KB
dictionary.h 6KB
config.h 5KB
modbus-private.h 4KB
alpha_motion_control.h 3KB
elog_cfg.h 2KB
modbus-rtu-private.h 2KB
modbus-version.h 2KB
global_setting.h 2KB
modbus-rtu.h 1KB
high_level_control.h 1KB
am335x_setting.h 999B
cmdparser.h 569B
modbus-version.h.in 2KB
info 10KB
arm.jpg 132KB
jquery-1.12.4.min.js 95KB
bootstrap.js 68KB
bootstrap.min.js 36KB
npm.js 484B
Makefile 636B
Makefile 432B
Makefile 349B
WinApplication.vshost.exe.manifest 479B
PlatformTool.vshost.exe.manifest 479B
WinApplication.vshost.exe.manifest 479B
bootstrap.min.css.map 529KB
bootstrap.css.map 380KB
bootstrap-theme.css.map 47KB
bootstrap-theme.min.css.map 25KB
README.md 2KB
共 168 条
- 1
- 2
资源评论
普通的一个普通猿
- 粉丝: 1466
- 资源: 1761
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功