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
9ffeecdf
Commit
9ffeecdf
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
APM: fixed some compiler warnings
parent
63ca982f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ArduPlane/commands.pde
+7
-7
7 additions, 7 deletions
ArduPlane/commands.pde
ArduPlane/commands_process.pde
+0
-9
0 additions, 9 deletions
ArduPlane/commands_process.pde
with
7 additions
and
16 deletions
ArduPlane/commands.pde
+
7
−
7
View file @
9ffeecdf
...
...
@@ -43,7 +43,7 @@ static void reload_commands_airstart()
static
struct
Location
get_cmd_with_index
(
int16_t
i
)
{
struct
Location
temp
;
int
32
_t
mem
;
u
int
16
_t
mem
;
// Find out proper location in memory by using the start_byte position + the index
// --------------------------------------------------------------------------------
...
...
@@ -53,22 +53,22 @@ static struct Location get_cmd_with_index(int16_t i)
}
else
{
// read WP position
mem
=
(
WP_START_BYTE
)
+
(
i
*
WP_SIZE
);
temp
.
id
=
eeprom_read_byte
((
uint8_t
*
)
mem
);
temp
.
id
=
eeprom_read_byte
((
uint8_t
*
)
(
uintptr_t
)
mem
);
mem
++
;
temp
.
options
=
eeprom_read_byte
((
uint8_t
*
)
mem
);
temp
.
options
=
eeprom_read_byte
((
uint8_t
*
)
(
uintptr_t
)
mem
);
mem
++
;
temp
.
p1
=
eeprom_read_byte
((
uint8_t
*
)
mem
);
temp
.
p1
=
eeprom_read_byte
((
uint8_t
*
)
(
uintptr_t
)
mem
);
mem
++
;
temp
.
alt
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
mem
);
temp
.
alt
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
(
uintptr_t
)
mem
);
mem
+=
4
;
temp
.
lat
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
mem
);
temp
.
lat
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
(
uintptr_t
)
mem
);
mem
+=
4
;
temp
.
lng
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
mem
);
temp
.
lng
=
(
long
)
eeprom_read_dword
((
uint32_t
*
)
(
uintptr_t
)
mem
);
}
// Add on home altitude if we are a nav command (or other command with altitude) and stored alt is relative
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/commands_process.pde
+
0
−
9
View file @
9ffeecdf
...
...
@@ -120,15 +120,6 @@ static void process_next_command()
}
}
/**************************************************/
// These functions implement the commands.
/**************************************************/
static
void
process_nav_cmd
()
{
//gcs_send_text_P(SEVERITY_LOW,PSTR("New nav command loaded"));
handle_process_nav_cmd
();
}
static
void
process_non_nav_command
()
{
//gcs_send_text_P(SEVERITY_LOW,PSTR("new non-nav command loaded"));
...
...
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