Skip to content

Commit 2245516

Browse files
committed
Merge branch 'HEAD'
2 parents 5f86111 + c356d3f commit 2245516

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

FG_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@
7575
if fgmodelsdir is None:
7676
fgmodelsdir='./models'
7777

78-
#get FGFS EXTRA PARAMS
78+
#get FGFS EXTRA PARAMS
7979
fgargsex=os.getenv("FG_ARGS_EX")
8080
print(fgargsex)
8181
if fgargsex is None:
8282
fgargsex=" ".join(exparameters);
8383

84-
#get FGFS ADD PARAMS
84+
#get FGFS ADD PARAMS
8585
fgargsadd=os.getenv("FG_ARGS_ADD")
8686
print(fgargsadd)
8787
if fgargsadd is None:
@@ -138,6 +138,7 @@
138138
"--aircraft=" + model,
139139
"--fg-aircraft=" + fgmodelsdir,
140140
"--telnet="+str(15400+px4id),
141+
"--timeofday=noon",
141142
"--generic=socket,out,100,127.0.0.1,"+str(15200+px4id)+",udp,FGtoPX4",
142143
"--generic=socket,in,100,,"+str(15300+px4id)+",udp,PX4toFG",
143144
"--model-hz=120",

cmake/FindMAVLink.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ find_path(_MAVLINK_INCLUDE_DIR
4949

5050
# look specifically for the ROS version if no other was found
5151
find_path(_MAVLINK_INCLUDE_DIR
52-
NAMES mavlink/v1.0/mavlink_types.h mavlink/v2.0/mavlink_types.h
53-
PATH_SUFFIXES include
52+
NAMES mavlink_types.h
53+
PATH_SUFFIXES include/mavlink
5454
PATHS /opt/ros/${ROS_DISTRO}/
5555
)
5656

src/fg_communicator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
*
3-
* Copyright (c) 2020 ThunderFly s.r.o.. All rights reserved.
3+
* Copyright (c) 2020-2022 ThunderFly s.r.o.. All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions

src/fg_communicator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
*
3-
* Copyright (c) 2020 ThunderFly s.r.o.. All rights reserved.
3+
* Copyright (c) 2020-2022 ThunderFly s.r.o.. All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
66
* modification, are permitted provided that the following conditions

src/vehicle_state.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545

4646
#include <random>
4747

48-
#include <mavlink/v2.0/common/mavlink.h>
49-
#include <Eigen/Geometry>
48+
#include <common/mavlink.h>
49+
#include <Eigen/Geometry>
5050

5151
using namespace Eigen;
5252

@@ -148,11 +148,11 @@ class VehicleState
148148
double pressure_alt;
149149
double diff_pressure;
150150

151-
151+
152152
Quaterniond lastFGBodyRot;
153153
double lastFGTime;
154154

155-
155+
156156
};
157157

158158
#endif

0 commit comments

Comments
 (0)