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
cd19cb6c
Commit
cd19cb6c
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: fixed SERVO_OUTPUT_RAW for HIL
parent
ac8a6b7c
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
ArduPlane/GCS_Mavlink.pde
+16
-0
16 additions, 0 deletions
ArduPlane/GCS_Mavlink.pde
with
16 additions
and
0 deletions
ArduPlane/GCS_Mavlink.pde
+
16
−
0
View file @
cd19cb6c
...
...
@@ -328,6 +328,7 @@ static void NOINLINE send_radio_in(mavlink_channel_t chan)
static
void
NOINLINE
send_radio_out
(
mavlink_channel_t
chan
)
{
#if HIL_MODE == HIL_MODE_DISABLED || HIL_SERVOS
mavlink_msg_servo_output_raw_send
(
chan
,
micros
(),
...
...
@@ -340,6 +341,21 @@ static void NOINLINE send_radio_out(mavlink_channel_t chan)
APM_RC
.
OutputCh_current
(
5
),
APM_RC
.
OutputCh_current
(
6
),
APM_RC
.
OutputCh_current
(
7
));
#else
extern
RC_Channel
*
rc_ch
[
NUM_CHANNELS
];
mavlink_msg_servo_output_raw_send
(
chan
,
micros
(),
0
,
// port
rc_ch
[
0
]
->
radio_out
,
rc_ch
[
1
]
->
radio_out
,
rc_ch
[
2
]
->
radio_out
,
rc_ch
[
3
]
->
radio_out
,
rc_ch
[
4
]
->
radio_out
,
rc_ch
[
5
]
->
radio_out
,
rc_ch
[
6
]
->
radio_out
,
rc_ch
[
7
]
->
radio_out
);
#endif
}
static
void
NOINLINE
send_vfr_hud
(
mavlink_channel_t
chan
)
...
...
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