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
dbbfba36
Commit
dbbfba36
authored
12 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Copter: use home position for scaling Longitude
parent
5a3c7b2d
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
ArduCopter/commands.pde
+1
-1
1 addition, 1 deletion
ArduCopter/commands.pde
with
1 addition
and
1 deletion
ArduCopter/commands.pde
+
1
−
1
View file @
dbbfba36
...
@@ -188,7 +188,7 @@ static void init_home()
...
@@ -188,7 +188,7 @@ static void init_home()
Log_Write_Cmd
(
0
,
&
home
);
Log_Write_Cmd
(
0
,
&
home
);
// update navigation scalers. used to offset the shrinking longitude as we go towards the poles
// update navigation scalers. used to offset the shrinking longitude as we go towards the poles
float
rads
=
(
fabs
((
float
)
next_WP
.
lat
)
/
t7
)
*
0.0174532925
;
float
rads
=
(
fabs
((
float
)
home
.
lat
)
/
t7
)
*
0.0174532925
;
scaleLongDown
=
cos
(
rads
);
scaleLongDown
=
cos
(
rads
);
scaleLongUp
=
1.0
f
/
cos
(
rads
);
scaleLongUp
=
1.0
f
/
cos
(
rads
);
...
...
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