• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-01
  • 标签: 键盘  c++  c  源码  控制  

资源简介

AQMD3620NS-A直流电机驱动器有多种控制方式,包括模拟信号输入和485控制。这里主要采用485通信接口。

资源截图

代码片段和文件信息

#include    //_getch
#include   //_getch
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include //时间戳
#include //多线程
//下面是自己写的头文件
#include “AQMD3620NS-A.h“
#include “serialport.h“
#include “odometer.h“
#include “stepper_controller.h“
//按键定义
#define KEY_LEFT 0x44
#define KEY_RIGHT 0x43
#define KEY_UP          0x41
#define KEY_DOWN        0x42
#define WHITE_SPACE     0x20
#define q               0x71

//Windows中的getch()在Linux的实现
char getch(){
    char buf=0;
    struct termios old={0};
    fflush(stdout);
    if(tcgetattr(0 &old)<0)
        perror(“tcsetattr()“);
    old.c_lflag&=~ICANON;
    old.c_lflag&=~ECHO;
    old.c_cc[VMIN]

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-11 05:38  Motor_test-master\
     文件       19580  2016-11-11 05:38  Motor_test-master\AQMD3620NS-A.h
     文件        3915  2016-11-11 05:38  Motor_test-master\CRC16.cpp
     文件        3975  2016-11-11 05:38  Motor_test-master\CRC16.h
     文件        3760  2016-11-11 05:38  Motor_test-master\README.md
     文件        7338  2016-11-11 05:38  Motor_test-master\car_beta1.cpp
     文件        3471  2016-11-11 05:38  Motor_test-master\encoder.cpp
     文件        7265  2016-11-11 05:38  Motor_test-master\get_motor_data.cpp
     文件        8361  2016-11-11 05:38  Motor_test-master\main.cpp
     文件        5060  2016-11-11 05:38  Motor_test-master\main_control1.cpp
     文件        2519  2016-11-11 05:38  Motor_test-master\motor_test.cpp
     文件       29697  2016-11-11 05:38  Motor_test-master\motor_union_test
     文件        2625  2016-11-11 05:38  Motor_test-master\odometer.h
     文件        3255  2016-11-11 05:38  Motor_test-master\serialport.h
     文件        6260  2016-11-11 05:38  Motor_test-master\speed_data.txt
     文件         379  2016-11-11 05:38  Motor_test-master\speed_data_example.txt
     文件       23097  2016-11-11 05:38  Motor_test-master\stepper_controller.h
     文件         876  2016-11-11 05:38  Motor_test-master\test.cpp

评论

共有 条评论