Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Gaussier
Drone FlyMonitor2
Commits
53a90fa3
Commit
53a90fa3
authored
Sep 15, 2021
by
Léo Coquet
Browse files
Merge branch 'master' of
https://git.cyu.fr/gaussier/drone_flyMonitor2
parents
980ef957
e1b2198d
Pipeline
#1542
failed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Com_server/test/TestDroneRemoteControl.cpp
View file @
53a90fa3
...
...
@@ -45,7 +45,7 @@ blc_channel blc_control_remote_vector("/pixhawk.control.remoteVectors", BLC_CHAN
blc_channel
blc_control_motors
(
"/pixhawk.control.motors"
,
BLC_CHANNEL_READ
,
'
FL32
'
,
'
NDEF
'
,
1
,
4
);
//x, y, z, r
//Channels use to command the drone
blc_channel
blc_control_commands
(
"/pixhawk.control.commands"
,
BLC_CHANNEL_READ
,
'
FL32
'
,
'
NDEF
'
,
1
,
5
);
// 1=on, 0=off
blc_channel
blc_control_commands
(
"/pixhawk.control.commands"
,
BLC_CHANNEL_READ
,
'
FL32
'
,
'
NDEF
'
,
1
,
9
);
// 1=on, 0=off
blc_channel
blc_highres_imu
(
"/pixhawk.sensors.imu"
,
BLC_CHANNEL_WRITE
,
'
FL32
'
,
'
NDEF
'
,
1
,
9
);
//Channel use to know altitude of drone
blc_channel
blc_attitude
(
"/pixhawk.sensors.attitude"
,
BLC_CHANNEL_WRITE
,
'
FL32
'
,
'
NDEF
'
,
1
,
7
);
...
...
@@ -172,6 +172,10 @@ drone1.command_setMode(DRONE_OFF);
{
drone1
.
command_kill
(
0
);
}
else
if
(
buffer_command
==
"j"
)
{
drone1
.
move_drone_to
(
1
,
0
,
0
);
}
/* else if(buffer_command=="n")
{
drone1.waypoint(0.1,0.1,0.1);
...
...
Write
Preview
Supports
Markdown
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