Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a254ee75
Commit
a254ee75
authored
Apr 10, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Vehicle::sendMessageOnPriorityLink
parent
590002f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Vehicle.h
src/Vehicle/Vehicle.h
+4
-0
UAS.cc
src/uas/UAS.cc
+4
-4
No files found.
src/Vehicle/Vehicle.h
View file @
a254ee75
...
...
@@ -406,6 +406,10 @@ public:
/// @return true: message sent, false: Link no longer connected
bool
sendMessageOnLink
(
LinkInterface
*
link
,
mavlink_message_t
message
);
/// Sends a message to the priority link
/// @return true: message sent, false: Link no longer connected
bool
sendMessageOnPriorityLink
(
mavlink_message_t
message
)
{
return
sendMessageOnLink
(
priorityLink
(),
message
);
}
/// Sends the specified messages multiple times to the vehicle in order to attempt to
/// guarantee that it makes it to the vehicle.
void
sendMessageMultiple
(
mavlink_message_t
message
);
...
...
src/uas/UAS.cc
View file @
a254ee75
...
...
@@ -846,7 +846,7 @@ void UAS::startCalibration(UASInterface::StartCalibrationType calType)
accelCal
,
// accel cal
airspeedCal
,
// airspeed cal
escCal
);
// esc cal
_vehicle
->
sendMessage
(
msg
);
_vehicle
->
sendMessage
OnPriorityLink
(
msg
);
}
void
UAS
::
stopCalibration
(
void
)
...
...
@@ -870,7 +870,7 @@ void UAS::stopCalibration(void)
0
,
// accel cal
0
,
// airspeed cal
0
);
// unused
_vehicle
->
sendMessage
(
msg
);
_vehicle
->
sendMessage
OnPriorityLink
(
msg
);
}
void
UAS
::
startBusConfig
(
UASInterface
::
StartBusConfigType
calType
)
...
...
@@ -905,7 +905,7 @@ void UAS::startBusConfig(UASInterface::StartBusConfigType calType)
0
,
0
,
0
);
_vehicle
->
sendMessage
(
msg
);
_vehicle
->
sendMessage
OnPriorityLink
(
msg
);
}
void
UAS
::
stopBusConfig
(
void
)
...
...
@@ -929,7 +929,7 @@ void UAS::stopBusConfig(void)
0
,
0
,
0
);
_vehicle
->
sendMessage
(
msg
);
_vehicle
->
sendMessage
OnPriorityLink
(
msg
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment