本文主要是介绍80机华南独山更改点算法--对每个循环显示的优化,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在上传采浆量的时候,对上传值进行限制优化;如单采循环设置的230,采集了231-239都显示230;第二循环461-469都显示460;第三循环599-609都显示600.
#include "StdAfx.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "math.h"
#include <malloc.h>
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
float a = 0.34;
float b = 0.67;
float c = 0;
float testTemp = 0.041;
static char i = 1;\
uint8_t k = 0;
//uint8_t LRCzy[15] = {0x3A,0x30,0x33,0x30,0x36,0x32,0x30,0x30,0x31,0x32,0x45,0x31,0x38,0x39,0x30};
uint8_t LRCzy[12] = {0x30,0x33,0x30,0x36,0x32,0x30,0x30,0x31,0x32,0x45,0x31,0x38};
//uint8_t LRCzy[15] = {0x3A,0x30,0x31,0x30,0x36,0x32,0x30,0x30,0x31,0x31,0x37,0x37,0x30,0x35,0x31};
uint8_t Hex_to_ASCII(uint8_t data)
{
这篇关于80机华南独山更改点算法--对每个循环显示的优化的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!