Skip to content

Commit

Permalink
Simulator: reduce default rate
Browse files Browse the repository at this point in the history
For lockstep we use a default rate of 250 Hz. Therefore, it makes sense
to use this as a deafult rate as well. That way we can start it without
passing on any options and it will work out of the box.
  • Loading branch information
julianoes authored and LorenzMeier committed Jan 8, 2019
1 parent b5bb445 commit 915cb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/me/drton/jmavsim/Simulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static enum Port {
true; // send System.out messages to stdout (console) as well as any custom handlers (see SystemOutHandler)
public static boolean DEBUG_MODE = false;

public static final int DEFAULT_SIM_RATE = 500; // Hz
public static final int DEFAULT_SIM_RATE = 250; // Hz
public static final double DEFAULT_SPEED_FACTOR = 1.0;
public static final int DEFAULT_AUTOPILOT_SYSID =
-1; // System ID of autopilot to communicate with. -1 to auto set ID on first received heartbeat.
Expand Down

0 comments on commit 915cb57

Please sign in to comment.