资源简介
小型舵机四轴机械臂控制源码,实现机械的码垛,分拣等不同动作
代码片段和文件信息
/**
******************************************************************************
* @file App/main.c
* @author Ike
* @version V0.1.0
* @date 13-Feb-2015
* @brief Library configuration file.
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f10x.h“
#include
#include “delay\delay.h“
#include “usart\usart.h“
#include “Motor\Motor.h“
#include “SPI_Flash\w25qxx.h“
#include “PLC_IO\IOComm.h“
#include “math.h“
#include “Action\Action.h“
#include “WWDG\WWDG.h“
#include “sl_common.h“
#include “wifi_app.h“
#include “peripheral.h“
#include “wifi_config.h“
#include “chipid.h“
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* Initialization */
NVIC_PriorityGroupConfig( NVIC_PriorityGroup_2 );
delay_init(72);
WiFi_shackhand_Init();
// WWDG_Init( );
Get_ChipID( );
Key_Init( );
USART1_Init( );
USART3_Init( );
W25Qxx_Init( );
Motors_Init( );
USART2_Init( );
Wifi_init_AP();
/* Infinite loop */
while(1)
{
Wifi_event();
if((m_nWifiStatus == 1) ||(m_nWifiStatus == 3)) //普通模式和直联模式
{
//局域网有数据过来
if(m_unSocketStatus &0x01)
{
if(m_nWifiStatus == 1)
m_usUdpBufLen = Wifi_LanReciveDat(m_strUdpBuf1024);
else if(m_nWifiStatus == 3)
m_usUdpBufLen = Wifi_Udp1ReaciveDat(m_strUdpBuf1024);
if(m_usUdpBufLen > 0)
{
if(m_nWifiStatus == 1)
{
Palletizer_State.MassegeState.Length = m_usUdpBufLen ;
Palletizer_State.MassegeState.Port = WIFI ;
Palletizer_State.MassegeState.Data = m_strUdpBuf ;
Palletizer_State.MassegeState.MassegeIncommingFlag = Incomming ;
}
else if(m_nWifiStatus == 3)
{
Palletizer_State.MassegeState.Length = m_usUdpBufLen ;
Palletizer_State.MassegeState.Port = WIFI_AP ;
Palletizer_State.MassegeState.Data = m_strUdpBuf ;
Palletizer_State.MassegeState.MassegeIncommingFlag = Incomming ;
}
}
}
}
}
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file uint32_t lin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-14 11:23 Robotic Palletizer V4_20160829\
目录 0 2016-05-14 11:23 Robotic Palletizer V4_20160829\Robotic Palletizer V4\
目录 0 2016-08-27 20:55 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\
目录 0 2016-08-29 13:24 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\Action\
文件 50838 2016-08-29 13:24 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\Action\Action.c
文件 5251 2016-08-29 13:24 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\Action\Action.h
文件 3353 2016-08-27 20:55 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\main.c
文件 3259 2015-12-31 15:04 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\stm32f10x_conf.h
文件 7986 2016-08-27 20:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\stm32f10x_it.c
文件 2086 2015-09-20 21:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\APP\stm32f10x_it.h
目录 0 2016-08-23 16:45 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\
目录 0 2016-05-14 11:23 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\delay\
文件 2250 2015-09-20 21:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\delay\delay.c
文件 216 2015-09-20 21:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\delay\delay.h
目录 0 2016-08-25 10:19 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\Motor\
文件 10600 2016-08-25 10:19 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\Motor\Motor.c
文件 1545 2016-08-25 10:17 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\Motor\Motor.h
目录 0 2016-05-14 11:23 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\PLC_IO\
文件 2005 2015-09-20 21:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\PLC_IO\IOComm.c
文件 1012 2015-09-20 21:28 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\PLC_IO\IOComm.h
目录 0 2016-05-14 15:33 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\SPI_Flash\
文件 11112 2016-05-14 15:33 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\SPI_Flash\w25qxx.c
文件 2865 2016-05-14 15:32 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\SPI_Flash\w25qxx.h
目录 0 2016-08-24 09:35 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\usart\
文件 18662 2016-08-23 17:41 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\usart\usart.c
文件 2668 2016-08-24 09:35 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\usart\usart.h
目录 0 2016-08-24 16:33 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\WiFi\
文件 1026 2016-08-23 17:41 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\WiFi\chipid.c
文件 155 2016-07-22 09:58 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\WiFi\chipid.h
文件 1116 2016-07-07 17:52 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\WiFi\Comtype.h
文件 7973 2016-08-24 16:33 Robotic Palletizer V4_20160829\Robotic Palletizer V4\HAL\WiFi\esp8266.c
............此处省略371个文件信息
相关资源
- .NetCore快速开发后台框架v1.0
- 资讯文章网站源码
- 赛腾中小学校学生网络评教系统 v2.
- 安卓五子棋源码 可实现人机对战
- 房屋出租管理系统源码及毕设论文
- net自动排课系统完整源码(适合智慧
- DXScene_VGScene v4.42 源码带sample版
- SSM+众筹网后台源码
- SSH项目OA系统源码
- 基于51单片机的太阳能手机充电系统
- SIFT算法实现及代码详解239444
- STM32F103 uCOS-II移植源码
- 中国象棋源码+论文人工智能,搜索算
- 疯狂ios讲义源代码
- C Primer Plus 中文第6版正版PDF书籍
- 基于S3C2410嵌入式keil开发实验与实践教
- VisualC典型模块与项目实战大全源码
- unity 打地鼠源码
- FreeRTOS中文实用教程
- Lab Windows_CVI逐步深入与开发pdf版和例
- 扩频通信系统实用仿真技术源码
- 电脑维修企业网站源码
- bootstrap基础教程对应源码
- 塞林思SDI开发源码FPGA
- ESP8266控制APP+源码合集.zip
- 九款表白网页的源码.rar
- ssm项目源码238763
- unity简易打砖块代码
- MUI搞笑视频app源码
- 中小型超市管理系统源码
评论
共有 条评论