Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

View filenameinterface.svgheight400Image Added

Errors:

  • collision_error
    • -1: no error
    • other values: a single track with multiple trains
  • train_speed_mismatch_error[NUM_TRAINS]
    • -1: no error
    • 1: the front and rear wagon have different speeds
  • train_point_changed_error[NUM_TRAINS]
    • indicates, that a point was changed while the train was standing on it,
      i.e., the front passed the point, but the rear not yet.
    • -1: no error
    • other values: the point that has the error
  • wagon_error_message[NUM_TRAINS][2]
    • -1: no error
    • 1: point not set correctly
    • 2: wagon uses wrong direction on KH_LN_2 or KH_LN_7, because the corresponding point was set wrongly
    • 3: wagon position under min of track (indicates a mistake in the environment)
    • 4: wagon position over max of track (indicates a mistake in the environment)
    • 5: diamond point set to send a train backwards through IC or OC. May cause further unexpected behavior
  • wagon_error_pos[NUM_TRAINS][2]
    • NOTE: The meaning depends on wagon_error_message.
    • if wagon_error_message is 0
      • this error can be ignored
    • if wagon_error_message is 1, 2 or 5
      • the point on which the error occurs
    • if wagon_error_message is 3 or 4
      • the track on which the error occurs

...