Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
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
wenzhongjian
car-controlserver
Commits
550c1523
Commit
550c1523
authored
Aug 12, 2025
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
减少了一些bug,推土机上下互换,微调了挖机
parent
efa65262
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
main
build/main
+0
-0
car0103_control.c
drivers/devicecontrol/car0103_control.c
+6
-6
No files found.
build/main
View file @
550c1523
No preview for this file type
drivers/devicecontrol/car0103_control.c
View file @
550c1523
...
@@ -8,14 +8,14 @@ void car0103_middle() {
...
@@ -8,14 +8,14 @@ void car0103_middle() {
}
}
void
mode_car0103_lift_flont
(
unsigned
char
gval
)
{
void
mode_car0103_lift_flont
(
unsigned
char
gval
)
{
int
b
=
0
;
int
b
=
1
;
if
(
gval
<
50
)
{
if
(
gval
<
50
)
{
pwmWrite
(
PWM_PIN_SPEED
,
75
);
pwmWrite
(
PWM_PIN_SPEED
,
75
);
}
}
else
if
(
gval
<=
60
)
{
else
if
(
gval
<=
60
)
{
pwmWrite
(
PWM_PIN_SPEED
,
79
);
pwmWrite
(
PWM_PIN_SPEED
,
79
+
b
);
}
else
if
(
gval
<=
70
)
{
}
else
if
(
gval
<=
70
)
{
pwmWrite
(
PWM_PIN_SPEED
,
80
);
pwmWrite
(
PWM_PIN_SPEED
,
80
+
b
);
}
else
if
(
gval
>
70
){
}
else
if
(
gval
>
70
){
int
flont_speed
=
80
+
(
gval
-
70
)
/
10
+
b
;
int
flont_speed
=
80
+
(
gval
-
70
)
/
10
+
b
;
pwmWrite
(
PWM_PIN_SPEED
,
flont_speed
);
pwmWrite
(
PWM_PIN_SPEED
,
flont_speed
);
...
@@ -23,13 +23,13 @@ void mode_car0103_lift_flont(unsigned char gval) {
...
@@ -23,13 +23,13 @@ void mode_car0103_lift_flont(unsigned char gval) {
}
}
void
mode_car0103_lift_back
(
unsigned
char
gval
)
{
void
mode_car0103_lift_back
(
unsigned
char
gval
)
{
int
b
=
0
;
int
b
=
1
;
if
(
gval
<
50
)
{
if
(
gval
<
50
)
{
pwmWrite
(
PWM_PIN_SPEED
,
75
);
pwmWrite
(
PWM_PIN_SPEED
,
75
);
}
else
if
(
gval
<=
60
)
{
}
else
if
(
gval
<=
60
)
{
pwmWrite
(
PWM_PIN_SPEED
,
71
);
pwmWrite
(
PWM_PIN_SPEED
,
71
-
b
);
}
else
if
(
gval
<=
70
)
{
}
else
if
(
gval
<=
70
)
{
pwmWrite
(
PWM_PIN_SPEED
,
70
);
pwmWrite
(
PWM_PIN_SPEED
,
70
-
b
);
}
else
if
(
gval
>
70
){
}
else
if
(
gval
>
70
){
int
back_speed
=
70
-
(
gval
-
70
)
/
10
-
b
;
int
back_speed
=
70
-
(
gval
-
70
)
/
10
-
b
;
pwmWrite
(
PWM_PIN_SPEED
,
back_speed
);
pwmWrite
(
PWM_PIN_SPEED
,
back_speed
);
...
...
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