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
d3adf4c3
Commit
d3adf4c3
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: enable AP_BoardConfig
parent
50a90a10
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ArduPlane/ArduPlane.pde
+4
-0
4 additions, 0 deletions
ArduPlane/ArduPlane.pde
ArduPlane/Parameters.h
+1
-0
1 addition, 0 deletions
ArduPlane/Parameters.h
ArduPlane/Parameters.pde
+4
-0
4 additions, 0 deletions
ArduPlane/Parameters.pde
ArduPlane/system.pde
+2
-0
2 additions, 0 deletions
ArduPlane/system.pde
with
11 additions
and
0 deletions
ArduPlane/ArduPlane.pde
+
4
−
0
View file @
d3adf4c3
...
...
@@ -74,6 +74,7 @@
#include
<AP_BattMonitor.h>
// Battery monitor library
#include
<AP_Arming.h>
#include
<AP_BoardConfig.h>
// Pre-AP_HAL compatibility
#include
"compat.h"
...
...
@@ -127,6 +128,9 @@ static AP_Scheduler scheduler;
// mapping between input channels
static
RCMapper
rcmap
;
// board specific config
static
AP_BoardConfig
BoardConfig
;
// primary control channels
static
RC_Channel
*
channel_roll
;
static
RC_Channel
*
channel_pitch
;
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/Parameters.h
+
1
−
0
View file @
d3adf4c3
...
...
@@ -100,6 +100,7 @@ public:
k_param_hil_err_limit
,
k_param_sonar
,
k_param_log_bitmask
,
k_param_BoardConfig
,
// 100: Arming parameters
k_param_arming
=
100
,
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/Parameters.pde
+
4
−
0
View file @
d3adf4c3
...
...
@@ -938,6 +938,10 @@ const AP_Param::Info var_info[] PROGMEM = {
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
GOBJECT
(
battery
,
"BATT_"
,
AP_BattMonitor
),
// @Group: BRD_
// @Path: ../libraries/AP_BoardConfig/AP_BoardConfig.cpp
GOBJECT
(
BoardConfig
,
"BRD_"
,
AP_BoardConfig
),
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
// @Group: SIM_
// @Path: ../libraries/SITL/SITL.cpp
...
...
This diff is collapsed.
Click to expand it.
ArduPlane/system.pde
+
2
−
0
View file @
d3adf4c3
...
...
@@ -92,6 +92,8 @@ static void init_ardupilot()
//
load_parameters
();
BoardConfig
.
init
();
set_control_channels
();
// reset the uartA baud rate after parameter load
...
...
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