Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
422c675c
Commit
422c675c
authored
11 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
Commented flow example slightly better
parent
5f2d35d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/examples/flow_position_control/flow_position_control_params.c
+11
-0
11 additions, 0 deletions
...ples/flow_position_control/flow_position_control_params.c
with
11 additions
and
0 deletions
src/examples/flow_position_control/flow_position_control_params.c
+
11
−
0
View file @
422c675c
...
...
@@ -40,14 +40,25 @@
#include
"flow_position_control_params.h"
/* controller parameters */
// Position control P gain
PARAM_DEFINE_FLOAT
(
FPC_POS_P
,
3
.
0
f
);
// Position control D / damping gain
PARAM_DEFINE_FLOAT
(
FPC_POS_D
,
0
.
0
f
);
// Altitude control P gain
PARAM_DEFINE_FLOAT
(
FPC_H_P
,
0
.
15
f
);
// Altitude control I (integrator) gain
PARAM_DEFINE_FLOAT
(
FPC_H_I
,
0
.
00001
f
);
// Altitude control D gain
PARAM_DEFINE_FLOAT
(
FPC_H_D
,
0
.
8
f
);
// Altitude control rate limiter
PARAM_DEFINE_FLOAT
(
FPC_H_RATE
,
0
.
1
f
);
// Altitude control minimum altitude
PARAM_DEFINE_FLOAT
(
FPC_H_MIN
,
0
.
5
f
);
// Altitude control maximum altitude (higher than 1.5m is untested)
PARAM_DEFINE_FLOAT
(
FPC_H_MAX
,
1
.
5
f
);
// Altitude control feed forward throttle - adjust to the
// throttle position (0..1) where the copter hovers in manual flight
PARAM_DEFINE_FLOAT
(
FPC_T_FFWD
,
0
.
7
f
);
// adjust this before flight
PARAM_DEFINE_FLOAT
(
FPC_L_S_X
,
1
.
2
f
);
PARAM_DEFINE_FLOAT
(
FPC_L_S_Y
,
1
.
2
f
);
...
...
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