Skip to content

Commit 4c102e7

Browse files
committed
Gazebo: Add no_time_sync and no_lockstep options
- Add extra fields to JSON message. Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
1 parent 6822fe4 commit 4c102e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/ArduPilotPlugin.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,14 @@ void gz::sim::systems::ArduPilotPlugin::CreateStateJSON(
20002000
writer.EndObject();
20012001
}
20022002

2003+
// Set no time sync
2004+
writer.Key("no_time_sync");
2005+
writer.Bool(true);
2006+
2007+
// Set no lockstep
2008+
writer.Key("no_lockstep");
2009+
writer.Bool(false);
2010+
20032011
writer.EndObject();
20042012

20052013
// get JSON

0 commit comments

Comments
 (0)