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
1ca6583d
Commit
1ca6583d
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_BoardConfig: restore /dev/vroutput change from Emile
my mistake, sorry Emile!
parent
be51a687
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
libraries/AP_BoardConfig/AP_BoardConfig.cpp
+2
-2
2 additions, 2 deletions
libraries/AP_BoardConfig/AP_BoardConfig.cpp
with
2 additions
and
2 deletions
libraries/AP_BoardConfig/AP_BoardConfig.cpp
+
2
−
2
View file @
1ca6583d
...
...
@@ -121,9 +121,9 @@ void AP_BoardConfig::init()
if
(
_pwm_count
>
8
)
_pwm_count
.
set
(
8
);
if
(
_pwm_count
<
0
)
_pwm_count
.
set
(
0
);
int
fd
=
open
(
"/dev/
px4fmu
"
,
0
);
int
fd
=
open
(
"/dev/
vroutput
"
,
0
);
if
(
fd
==
-
1
)
{
hal
.
scheduler
->
panic
(
"Unable to open /dev/
px4fmu
"
);
hal
.
scheduler
->
panic
(
"Unable to open /dev/
vroutput
"
);
}
if
(
ioctl
(
fd
,
PWM_SERVO_SET_COUNT
,
_pwm_count
.
get
())
!=
0
)
{
hal
.
console
->
printf
(
"RCOutput: Unable to setup alt PWM to %u channels
\n
"
,
_pwm_count
.
get
());
...
...
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