Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈家乐
jiancetai
Commits
a969132c
Commit
a969132c
authored
Jul 17, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:根据建雅仪表故障码修改,更新检测台程序,屏蔽无用部分
parent
06f65803
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
38 deletions
+39
-38
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+2
-1
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+37
-37
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
a969132c
...
...
@@ -642,7 +642,8 @@ void can_submit(void)
init_CAN_Frame
(
&
m_msg4
,
0x322
,
8
,
1
,
data4
);
/* 故障码TCU指示灯 */
data5
[
1
]
=
0x01
;
data5
[
0
]
=
0x0F
;
data5
[
1
]
=
0xA1
;
init_CAN_Frame
(
&
m_msg5
,
0x323
,
8
,
1
,
data5
);
/* D档 */
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
a969132c
...
...
@@ -4439,45 +4439,45 @@ uint8_t CurrentWrong = 0;
uint16_t
CurrentWrongfks
=
0
;
void
Get_static_Current
(
void
)
{
static uint32_t loc_Timer = 0;
static uint32_t loc_ret = 0;
if(MENU_CHECK_STEP == 11)
{
loc_Current_0 = ADC_Read_Signal(ADC_CH_KL15_VOLTAGE);
loc_ret += loc_Current_0;
loc_Timer++;
//
static uint32_t loc_Timer = 0;
//
static uint32_t loc_ret = 0;
//
if(MENU_CHECK_STEP == 11)
//
{
//
loc_Current_0 = ADC_Read_Signal(ADC_CH_KL15_VOLTAGE);
//
loc_ret += loc_Current_0;
//
loc_Timer++;
if ( loc_Timer >= Sampling_NUM )
{
loc_Timer = 0;
loc_ret /= Sampling_NUM;
//
if ( loc_Timer >= Sampling_NUM )
//
{
//
loc_Timer = 0;
//
loc_ret /= Sampling_NUM;
// loc_ret *= 1000;//单位0.001毫伏
// loc_ret /= 100;//转化为电流,单位0.001毫安
loc_ret /= 10;//单位0.1毫安
loc_ret1 = loc_ret;
}
if(loc_ret1 != 0)
{
TFT_LCD_Draw_Bmp(190, 60, ( uint8_t * )gImage_Number_15_white_PiontX0_Y0);
GUI_General_Digit_Display(loc_ret1, Num_15, 3, 0, CurrentDigitNum09PosX, 60);
// if(loc_ret1 > 10)
// {
// MENU_CHECK_STEP = 14;
// CurrentWrong = 1;
// }
// else
// {
// CurrentWrong = 0;
// }
loc_ret1 = 0;
}
else
{
MENU_CHECK_STEP = 11;
// CurrentWrong = 1;
}
}
//
// loc_ret *= 1000;//单位0.001毫伏
//
// loc_ret /= 100;//转化为电流,单位0.001毫安
//
loc_ret /= 10;//单位0.1毫安
//
loc_ret1 = loc_ret;
//
}
//
if(loc_ret1 != 0)
//
{
//
TFT_LCD_Draw_Bmp(190, 60, ( uint8_t * )gImage_Number_15_white_PiontX0_Y0);
//
GUI_General_Digit_Display(loc_ret1, Num_15, 3, 0, CurrentDigitNum09PosX, 60);
//
// if(loc_ret1 > 10)
//
// {
//
// MENU_CHECK_STEP = 14;
//
// CurrentWrong = 1;
//
// }
//
// else
//
// {
//
// CurrentWrong = 0;
//
// }
//
loc_ret1 = 0;
//
}
//
else
//
{
//
MENU_CHECK_STEP = 11;
//
// CurrentWrong = 1;
//
}
//
}
}
const
uint16_t
testNum
[]
=
{
200
,
190
,
180
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment