Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
a8cfd6f3
Commit
a8cfd6f3
authored
7 years ago
by
José Roberto de Souza
Committed by
Lorenz Meier
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msg: Use the correctly data types on vehicle_command
Lets save a few bytes using the right data types.
parent
1af5ed90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
msg/vehicle_command.msg
+5
-5
5 additions, 5 deletions
msg/vehicle_command.msg
src/modules/events/send_event.cpp
+2
-2
2 additions, 2 deletions
src/modules/events/send_event.cpp
with
7 additions
and
7 deletions
msg/vehicle_command.msg
+
5
−
5
View file @
a8cfd6f3
...
...
@@ -98,9 +98,9 @@ float32 param4 # Parameter 4, as defined by MAVLink uint32 VEHICLE_CMD enum.
float64 param5 # Parameter 5, as defined by MAVLink uint32 VEHICLE_CMD enum.
float64 param6 # Parameter 6, as defined by MAVLink uint32 VEHICLE_CMD enum.
float32 param7 # Parameter 7, as defined by MAVLink uint32 VEHICLE_CMD enum.
uint
32
command # Command ID, as defined MAVLink by uint32 VEHICLE_CMD enum.
uint
32
target_system # System which should execute the command
uint
32
target_component # Component which should execute the command, 0 for all components
uint
32
source_system # System sending the command
uint
32
source_component # Component sending the command
uint
16
command # Command ID, as defined MAVLink by uint32 VEHICLE_CMD enum.
uint
8
target_system # System which should execute the command
uint
8
target_component # Component which should execute the command, 0 for all components
uint
8
source_system # System sending the command
uint
8
source_component # Component sending the command
uint8 confirmation # 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
This diff is collapsed.
Click to expand it.
src/modules/events/send_event.cpp
+
2
−
2
View file @
a8cfd6f3
...
...
@@ -257,8 +257,8 @@ int SendEvent::custom_command(int argc, char *argv[])
}
vehicle_command_s
cmd
=
{};
cmd
.
target_system
=
-
1
;
cmd
.
target_component
=
-
1
;
cmd
.
target_system
=
0
;
cmd
.
target_component
=
0
;
cmd
.
command
=
vehicle_command_s
::
VEHICLE_CMD_PREFLIGHT_CALIBRATION
;
cmd
.
param1
=
(
gyro_calib
||
calib_all
)
?
vehicle_command_s
::
PREFLIGHT_CALIBRATION_TEMPERATURE_CALIBRATION
:
NAN
;
...
...
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