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
095c66b2
Commit
095c66b2
authored
Jun 03, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol
parents
b53d6cbc
472b6b1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+8
-8
QGCHilFlightGearConfiguration.ui
src/ui/QGCHilFlightGearConfiguration.ui
+1
-1
No files found.
src/comm/QGCFlightGearLink.cc
View file @
095c66b2
...
...
@@ -192,13 +192,13 @@ void QGCFlightGearLink::run()
flightGearArguments
<<
QString
(
"--fg-aircraft=%1"
).
arg
(
fgAircraft
);
if
(
mav
->
getSystemType
()
==
MAV_TYPE_QUADROTOR
)
{
flightGearArguments
<<
QString
(
"--generic=socket,out,
5
0,127.0.0.1,%1,udp,qgroundcontrol-quadrotor"
).
arg
(
port
);
flightGearArguments
<<
QString
(
"--generic=socket,in,
5
0,127.0.0.1,%1,udp,qgroundcontrol-quadrotor"
).
arg
(
currentPort
);
flightGearArguments
<<
QString
(
"--generic=socket,out,
30
0,127.0.0.1,%1,udp,qgroundcontrol-quadrotor"
).
arg
(
port
);
flightGearArguments
<<
QString
(
"--generic=socket,in,
30
0,127.0.0.1,%1,udp,qgroundcontrol-quadrotor"
).
arg
(
currentPort
);
}
else
{
flightGearArguments
<<
QString
(
"--generic=socket,out,
5
0,127.0.0.1,%1,udp,qgroundcontrol-fixed-wing"
).
arg
(
port
);
flightGearArguments
<<
QString
(
"--generic=socket,in,
5
0,127.0.0.1,%1,udp,qgroundcontrol-fixed-wing"
).
arg
(
currentPort
);
flightGearArguments
<<
QString
(
"--generic=socket,out,
30
0,127.0.0.1,%1,udp,qgroundcontrol-fixed-wing"
).
arg
(
port
);
flightGearArguments
<<
QString
(
"--generic=socket,in,
30
0,127.0.0.1,%1,udp,qgroundcontrol-fixed-wing"
).
arg
(
currentPort
);
}
flightGearArguments
<<
"--atlas=socket,out,1,localhost,5505,udp"
;
// flightGearArguments << "--in-air";
...
...
@@ -464,7 +464,7 @@ void QGCFlightGearLink::readBytes()
// Parse string
float
roll
,
pitch
,
yaw
,
rollspeed
,
pitchspeed
,
yawspeed
;
double
lat
,
lon
,
alt
;
double
lat
,
lon
,
alt
;
float
ind_airspeed
;
float
true_airspeed
;
float
vx
,
vy
,
vz
,
xacc
,
yacc
,
zacc
;
...
...
@@ -507,7 +507,7 @@ void QGCFlightGearLink::readBytes()
float
density
=
abs_pressure
/
(
air_gas_constant
*
(
temperature
-
absolute_null_celsius
));
diff_pressure
=
true_airspeed
*
true_airspeed
*
density
/
2.0
f
;
//qDebug() << "diff_pressure: " << diff_pressure << "abs_pressure: " << abs_pressure;
/* Calculate indicated airspeed */
const
float
air_density_sea_level_15C
=
1.225
f
;
//kg/m^3
if
(
diff_pressure
>
0
)
...
...
@@ -517,9 +517,9 @@ void QGCFlightGearLink::readBytes()
{
ind_airspeed
=
-
sqrtf
((
2.0
f
*
fabsf
(
diff_pressure
))
/
air_density_sea_level_15C
);
}
//qDebug() << "ind_airspeed: " << ind_airspeed << "true_airspeed: " << true_airspeed;
// Send updated state
//qDebug() << "sensorHilEnabled: " << sensorHilEnabled;
if
(
_sensorHilEnabled
)
...
...
src/ui/QGCHilFlightGearConfiguration.ui
View file @
095c66b2
...
...
@@ -68,7 +68,7 @@
</sizepolicy>
</property>
<property
name=
"plainText"
>
<string>
--roll=0 --pitch=0 --vc=0 --heading=300 --timeofday=noon --disable-hud-3d --disable-fullscreen --geometry=400x300 --disable-anti-alias-hud --wind=0@0 --turbulence=0.0 --
prop:/sim/frame-rate-throttle-hz=30 --
control=mouse --disable-sound --disable-random-objects --disable-ai-models --shading-flat --fog-disable --disable-specular-highlight --disable-random-objects --disable-panel --disable-clouds --fdm=jsb --units-meters --prop:/engines/engine/running=true
</string>
<string>
--roll=0 --pitch=0 --vc=0 --heading=300 --timeofday=noon --disable-hud-3d --disable-fullscreen --geometry=400x300 --disable-anti-alias-hud --wind=0@0 --turbulence=0.0 --control=mouse --disable-sound --disable-random-objects --disable-ai-models --shading-flat --fog-disable --disable-specular-highlight --disable-random-objects --disable-panel --disable-clouds --fdm=jsb --units-meters --prop:/engines/engine/running=true
</string>
</property>
</widget>
</item>
...
...
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