Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
83ab9be0
Commit
83ab9be0
authored
13 years ago
by
rmackay9
Browse files
Options
Downloads
Patches
Plain Diff
ArduCopter: added DMP_ENABLE #define and CH6 tuning value for AHRS_KP
parent
38d974b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ArduCopter/ArduCopter.pde
+10
-1
10 additions, 1 deletion
ArduCopter/ArduCopter.pde
ArduCopter/config.h
+4
-0
4 additions, 0 deletions
ArduCopter/config.h
ArduCopter/defines.h
+2
-1
2 additions, 1 deletion
ArduCopter/defines.h
with
16 additions
and
2 deletions
ArduCopter/ArduCopter.pde
+
10
−
1
View file @
83ab9be0
...
@@ -262,7 +262,11 @@ static GPS *g_gps_null;
...
@@ -262,7 +262,11 @@ static GPS *g_gps_null;
#if QUATERNION_ENABLE == ENABLED
#if QUATERNION_ENABLE == ENABLED
AP_AHRS_Quaternion
ahrs
(
&
imu
,
g_gps_null
);
AP_AHRS_Quaternion
ahrs
(
&
imu
,
g_gps_null
);
#else
#else
AP_AHRS_DCM
ahrs
(
&
imu
,
g_gps
);
#if DMP_ENABLED == ENABLED && CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
AP_AHRS_MPU6000
ahrs
(
&
imu
,
g_gps
,
&
ins
);
// only works with APM2
#else
AP_AHRS_DCM
ahrs
(
&
imu
,
g_gps
);
#endif
#endif
#endif
AP_TimerProcess
timer_scheduler
;
AP_TimerProcess
timer_scheduler
;
...
@@ -2368,6 +2372,11 @@ static void tuning(){
...
@@ -2368,6 +2372,11 @@ static void tuning(){
case
CH6_AHRS_YAW_KP
:
case
CH6_AHRS_YAW_KP
:
ahrs
.
_kp_yaw
.
set
(
tuning_value
);
ahrs
.
_kp_yaw
.
set
(
tuning_value
);
break
;
break
;
case
CH6_AHRS_KP
:
ahrs
.
_kp
.
set
(
tuning_value
);
//ahrs.push_gains_to_dmp();
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
ArduCopter/config.h
+
4
−
0
View file @
83ab9be0
...
@@ -1025,6 +1025,10 @@
...
@@ -1025,6 +1025,10 @@
# define QUATERNION_ENABLE DISABLED
# define QUATERNION_ENABLE DISABLED
#endif
#endif
// experimental mpu6000 DMP code
#ifndef DMP_ENABLED
# define DMP_ENABLED DISABLED
#endif
#ifndef ALTERNATIVE_YAW_MODE
#ifndef ALTERNATIVE_YAW_MODE
# define ALTERNATIVE_YAW_MODE DISABLED
# define ALTERNATIVE_YAW_MODE DISABLED
...
...
This diff is collapsed.
Click to expand it.
ArduCopter/defines.h
+
2
−
1
View file @
83ab9be0
...
@@ -179,7 +179,8 @@
...
@@ -179,7 +179,8 @@
#define CH6_LOITER_RATE_KI 28
#define CH6_LOITER_RATE_KI 28
#define CH6_LOITER_RATE_KD 23
#define CH6_LOITER_RATE_KD 23
#define CH6_AHRS_YAW_KP 30
#define CH6_AHRS_YAW_KP 30
#define CH6_AHRS_KP 31
// nav byte mask
// nav byte mask
...
...
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