Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bits3 Bare Minimum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francèsco Gerardino Marano
Bits3 Bare Minimum
Commits
0aaeb9fd
Commit
0aaeb9fd
authored
2 months ago
by
Francèsco Gerardino Marano
Browse files
Options
Downloads
Patches
Plain Diff
Update file config.h
parent
4b8075af
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fahrzeug/bits3-bare-minimum/config.h
+4
-4
4 additions, 4 deletions
Fahrzeug/bits3-bare-minimum/config.h
with
4 additions
and
4 deletions
Fahrzeug/bits3-bare-minimum/config.h
+
4
−
4
View file @
0aaeb9fd
...
@@ -85,9 +85,9 @@ float distance = 0.00; //Distanz [m] die das Fahrzeug zurück gelegt
...
@@ -85,9 +85,9 @@ float distance = 0.00; //Distanz [m] die das Fahrzeug zurück gelegt
* Servomotor Lenkung *
* Servomotor Lenkung *
* ****************** */
* ****************** */
const
int
STEER_SERVO_PIN
=
11
;
const
int
STEER_SERVO_PIN
=
11
;
const
int
STEER_ANGLE_MAX
=
1
1
0
;
// Muss angepasst werden!!!
const
int
STEER_ANGLE_MAX
=
1
2
0
;
// Muss angepasst werden!!!
(Angepasst)
const
int
STEER_ANGLE_MIN
=
7
0
;
// Muss angepasst werden!!!
const
int
STEER_ANGLE_MIN
=
5
0
;
// Muss angepasst werden!!!
(Angepasst)
const
int
STEER_START_POS
=
9
0
;
// Muss angepasst werden!!!
const
int
STEER_START_POS
=
8
0
;
// Muss angepasst werden!!!
(Angepasst)
thk_ServoController
ServoSteer
(
STEER_SERVO_PIN
,
STEER_START_POS
,
STEER_ANGLE_MAX
,
STEER_ANGLE_MIN
);
thk_ServoController
ServoSteer
(
STEER_SERVO_PIN
,
STEER_START_POS
,
STEER_ANGLE_MAX
,
STEER_ANGLE_MIN
);
int
STEER_HALF_RIGHT
=
STEER_START_POS
+
(
STEER_ANGLE_MAX
-
STEER_START_POS
)
/
2
;
int
STEER_HALF_RIGHT
=
STEER_START_POS
+
(
STEER_ANGLE_MAX
-
STEER_START_POS
)
/
2
;
...
@@ -193,7 +193,7 @@ const int MIN_DIST_TURN = 300; //Mindestanbstand vorne für anschließende
...
@@ -193,7 +193,7 @@ const int MIN_DIST_TURN = 300; //Mindestanbstand vorne für anschließende
/* ********** *
/* ********** *
PID Regler
PID Regler
* ********** */
* ********** */
const
double
prop_gain
=
0
.
0
;
//P-Glied; Wert muss im Bereich 0.0-10.0 angepasst werden
const
double
prop_gain
=
3
.
0
;
//P-Glied; Wert muss im Bereich 0.0-10.0 angepasst werden
const
double
int_gain
=
0
.
0
;
//I-Glied
const
double
int_gain
=
0
.
0
;
//I-Glied
const
double
diff_gain
=
0
.
0
;
//D-Glied
const
double
diff_gain
=
0
.
0
;
//D-Glied
uint8_t
setpoint
=
0
;
//Zielwert Regeldifferenz
uint8_t
setpoint
=
0
;
//Zielwert Regeldifferenz
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment