Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
0b97e47d
Commit
0b97e47d
authored
Oct 10, 2024
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:白天,夜晚模式亮度分开外发
parent
f9da1ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
8 deletions
+44
-8
CAN_APP.c
source/Appliciation/CAN_App/CAN_APP.c
+44
-8
No files found.
source/Appliciation/CAN_App/CAN_APP.c
View file @
0b97e47d
...
...
@@ -535,16 +535,56 @@ void Can_Set_Buff_18D00017(canlib_uint8_t CopyData [])
p18D00017
=
(
CANMsg18D00017Union
*
)
CopyData
;
if
(
p18D00017
!=
(
void
*
)
0
)
{
if
(
Get_TelltalesLedSts
(
m_LED_Park_Lamp
)
==
1
)
if
(
(
Get_TelltalesLedSts
(
m_LED_Park_Lamp
)
==
1
)
||
(
Get_TelltalesLedSts
(
m_LED_High_Lamp
)
==
1
)
)
{
if
(
g_
Light
.
Duty
==
15
0
)
if
(
g_
nightLight
.
Duty
==
10
0
)
{
IC_ILLUMINATION
=
1
5
;
IC_ILLUMINATION
=
1
0
;
}
else
if
(
g_Light
.
Duty
==
200
)
else
if
(
g_
night
Light
.
Duty
==
200
)
{
IC_ILLUMINATION
=
20
;
}
else
if
(
g_nightLight
.
Duty
==
250
)
{
IC_ILLUMINATION
=
27
;
}
else
if
(
g_nightLight
.
Duty
==
300
)
{
IC_ILLUMINATION
=
35
;
}
else
if
(
g_nightLight
.
Duty
==
350
)
{
IC_ILLUMINATION
=
45
;
}
else
if
(
g_nightLight
.
Duty
==
400
)
{
IC_ILLUMINATION
=
58
;
}
else
if
(
g_nightLight
.
Duty
==
450
)
{
IC_ILLUMINATION
=
73
;
}
else
if
(
g_nightLight
.
Duty
==
500
)
{
IC_ILLUMINATION
=
100
;
}
else
{
IC_ILLUMINATION
=
0
;
}
}
else
{
if
(
g_Light
.
Duty
==
100
)
{
IC_ILLUMINATION
=
10
;
}
else
if
(
g_Light
.
Duty
==
200
)
{
IC_ILLUMINATION
=
20
;
}
else
if
(
g_Light
.
Duty
==
250
)
{
IC_ILLUMINATION
=
27
;
...
...
@@ -574,10 +614,6 @@ void Can_Set_Buff_18D00017(canlib_uint8_t CopyData [])
IC_ILLUMINATION
=
0
;
}
}
else
{
IC_ILLUMINATION
=
0
;
}
p18D00017
->
Sig
.
ILLUMINATION
=
(
IC_ILLUMINATION
*
10
)
/
4
;
}
}
...
...
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