80机华南独山更改点算法--对每个循环显示的优化

发布时间:2023年12月27日

在上传采浆量的时候,对上传值进行限制优化;如单采循环设置的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)
{

文章来源:https://blog.csdn.net/nuoyigui9889/article/details/135253355
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。