Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
Ardupilot
Commits
4c95bf27
Commit
4c95bf27
authored
13 years ago
by
Jason Short
Browse files
Options
Downloads
Patches
Plain Diff
s
shortened strings, logging defines updated
parent
1b943276
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/system.pde
+7
-8
7 additions, 8 deletions
ArduCopter/system.pde
with
7 additions
and
8 deletions
ArduCopter/system.pde
+
7
−
8
View file @
4c95bf27
...
@@ -217,12 +217,10 @@ static void init_ardupilot()
...
@@ -217,12 +217,10 @@ static void init_ardupilot()
#ifdef USERHOOK_INIT
#ifdef USERHOOK_INIT
USERHOOK_INIT
USERHOOK_INIT
#endif
#endif
// Logging:
// --------
#if LOGGING_ENABLED == ENABLED
// DataFlash log initialization
#if LOGGING_ENABLED == ENABLED
DataFlash
.
Init
();
DataFlash
.
Init
();
#endif
#endif
#if CLI_ENABLED == ENABLED && CLI_SLIDER_ENABLED == ENABLED
#if CLI_ENABLED == ENABLED && CLI_SLIDER_ENABLED == ENABLED
// If the switch is in 'menu' mode, run the main menu.
// If the switch is in 'menu' mode, run the main menu.
...
@@ -237,20 +235,21 @@ static void init_ardupilot()
...
@@ -237,20 +235,21 @@ static void init_ardupilot()
run_cli
();
run_cli
();
}
}
#else
#else
Serial
.
printf_P
(
PSTR
(
"
\n
Press ENTER 3 times
to start interactive setup
\n\n
"
));
Serial
.
printf_P
(
PSTR
(
"
\n
Press ENTER 3 times
for CLI
\n\n
"
));
#endif // CLI_ENABLED
#endif // CLI_ENABLED
if
(
g
.
esc_calibrate
==
1
){
if
(
g
.
esc_calibrate
==
1
){
init_esc
();
init_esc
();
}
}
// Logging:
#if LOGGING_ENABLED == ENABLED
// --------
if
(
g
.
log_bitmask
!=
0
){
if
(
g
.
log_bitmask
!=
0
){
// TODO - Here we will check on the length of the last log
// TODO - Here we will check on the length of the last log
// We don't want to create a bunch of little logs due to powering on and off
// We don't want to create a bunch of little logs due to powering on and off
Serial
.
printf
(
"start_new_log"
);
start_new_log
();
start_new_log
();
}
}
#endif
GPS_enabled
=
false
;
GPS_enabled
=
false
;
...
...
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