修改压力计算公式

This commit is contained in:
草团君 2024-04-22 17:04:53 +08:00
parent 290fe0f827
commit c5ea18f629
3 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@
<Ww>
<count>5</count>
<WinNumber>1</WinNumber>
<ItemText>adc_value,0x0A</ItemText>
<ItemText>detect_result,0x0A</ItemText>
</Ww>
</WatchWindow1>
<MemoryWindow1>

View File

@ -927,7 +927,7 @@
:1039D000417501218175C675012E02D0022E08D1D4
:1039E00003E005206946087603E000206946087672
:1039F00000BF00BF0524224605A92846FFF7A8FB03
:103A0000012E12D10020694608730D311248FCF7CF
:103A0000012E12D10120694608730D311248FCF7CE
:103A10000CFC03A80130FCF7FDFB0190FEF74EFD06
:103A200003A901310290FCF700FC2819052203A923
:103A3000FFF78EFB601DC4B2601E81B2681C00F0EF

View File

@ -343,7 +343,7 @@ float32 pressure_detect(uint8_t id)
{
detect_result = ST_DEV_MISS;
}
val = (val - 600) / (10 * 15) / 16 * 1000;
val = (val - 600) / (10 * 15) / 16 * 1600;
return val;
}
@ -453,7 +453,7 @@ static uint8_t test_motor_cmd(uint8_t cmd, uint8_t *buf)
if (cmd == MOTOR_MOVE)
{
motor_param.dir = DIR_CW;
motor_param.dir = DIR_CCW;
motor_param.angle = 90;
motor_param.angle = S2B_FLOAT32(motor_param.angle);
}