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)
{

相关推荐

  1. 80华南算法--每个循环显示优化

    2024-01-04 15:12:04       54 阅读
  2. git撤销门道

    2024-01-04 15:12:04       27 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-04 15:12:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-04 15:12:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-04 15:12:04       87 阅读
  4. Python语言-面向对象

    2024-01-04 15:12:04       96 阅读

热门阅读

  1. Vue2/Vue3-插槽(全)

    2024-01-04 15:12:04       60 阅读
  2. 前后端项目统一返回类型(配置即用)

    2024-01-04 15:12:04       58 阅读
  3. oracle 子查询和窗口函数

    2024-01-04 15:12:04       63 阅读
  4. 深度学习必备框架PyTorch简介和参考资料

    2024-01-04 15:12:04       63 阅读
  5. python&Pandas二:数据读取与写入

    2024-01-04 15:12:04       66 阅读
  6. 原码、反码、补码,计算机中负数的表示

    2024-01-04 15:12:04       50 阅读
  7. 连接字符串

    2024-01-04 15:12:04       60 阅读
  8. 分布式【ZooKeeper面试题】

    2024-01-04 15:12:04       44 阅读