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
89c99ce1
Commit
89c99ce1
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Rover: enable AP_BoardConfig
parent
b5822cd5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
APMrover2/APMrover2.pde
+4
-0
4 additions, 0 deletions
APMrover2/APMrover2.pde
APMrover2/Parameters.h
+1
-0
1 addition, 0 deletions
APMrover2/Parameters.h
APMrover2/Parameters.pde
+4
-0
4 additions, 0 deletions
APMrover2/Parameters.pde
APMrover2/system.pde
+2
-0
2 additions, 0 deletions
APMrover2/system.pde
with
11 additions
and
0 deletions
APMrover2/APMrover2.pde
+
4
−
0
View file @
89c99ce1
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
#include
<AP_Navigation.h>
#include
<AP_Navigation.h>
#include
<APM_Control.h>
#include
<APM_Control.h>
#include
<AP_L1_Control.h>
#include
<AP_L1_Control.h>
#include
<AP_BoardConfig.h>
#include
<AP_HAL_AVR.h>
#include
<AP_HAL_AVR.h>
#include
<AP_HAL_AVR_SITL.h>
#include
<AP_HAL_AVR_SITL.h>
...
@@ -143,6 +144,9 @@ static AP_Scheduler scheduler;
...
@@ -143,6 +144,9 @@ static AP_Scheduler scheduler;
// mapping between input channels
// mapping between input channels
static
RCMapper
rcmap
;
static
RCMapper
rcmap
;
// board specific config
static
AP_BoardConfig
BoardConfig
;
// primary control channels
// primary control channels
static
RC_Channel
*
channel_steer
;
static
RC_Channel
*
channel_steer
;
static
RC_Channel
*
channel_throttle
;
static
RC_Channel
*
channel_throttle
;
...
...
This diff is collapsed.
Click to expand it.
APMrover2/Parameters.h
+
1
−
0
View file @
89c99ce1
...
@@ -34,6 +34,7 @@ public:
...
@@ -34,6 +34,7 @@ public:
k_param_initial_mode
,
k_param_initial_mode
,
k_param_scheduler
,
k_param_scheduler
,
k_param_relay
,
k_param_relay
,
k_param_BoardConfig
,
// IO pins
// IO pins
k_param_rssi_pin
=
20
,
k_param_rssi_pin
=
20
,
...
...
This diff is collapsed.
Click to expand it.
APMrover2/Parameters.pde
+
4
−
0
View file @
89c99ce1
...
@@ -482,6 +482,10 @@ const AP_Param::Info var_info[] PROGMEM = {
...
@@ -482,6 +482,10 @@ const AP_Param::Info var_info[] PROGMEM = {
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
// @Path: ../libraries/AP_BattMonitor/AP_BattMonitor.cpp
GOBJECT
(
battery
,
"BATT_"
,
AP_BattMonitor
),
GOBJECT
(
battery
,
"BATT_"
,
AP_BattMonitor
),
// @Group: BRD_
// @Path: ../libraries/AP_BoardConfig/AP_BoardConfig.cpp
GOBJECT
(
BoardConfig
,
"BRD_"
,
AP_BoardConfig
),
AP_VAREND
AP_VAREND
};
};
...
...
This diff is collapsed.
Click to expand it.
APMrover2/system.pde
+
2
−
0
View file @
89c99ce1
...
@@ -104,6 +104,8 @@ static void init_ardupilot()
...
@@ -104,6 +104,8 @@ static void init_ardupilot()
load_parameters
();
load_parameters
();
BoardConfig
.
init
();
set_control_channels
();
set_control_channels
();
// after parameter load setup correct baud rate on uartA
// after parameter load setup correct baud rate on uartA
...
...
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