Skip to content

Commit c70383d

Browse files
author
Olivier Butler
committed
fix initial tug position
1 parent 0cd6c9f commit c70383d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

data/po/strings.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
msgid ""
88
msgstr "Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-01-12 20:03+0200\n"
10+
"POT-Creation-Date: 2025-01-13 07:48+0200\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <LL@li.org>\n"

src/bp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
#define MAX_DRIVING_AWAY_DELAY 30 /* seconds */
9494

9595
#define TUG_APPCH_LONG_DIST (6 * bp_ls.tug->veh.wheelbase)
96-
#define TUG_APPCH_SHORT_DIST (4 * bp_ls.tug->veh.wheelbase)
96+
#define TUG_APPCH_SHORT_DIST (2 * bp_ls.tug->veh.wheelbase)
9797

9898
#define MIN_RADIO_VOLUME_THRESH 0.1
9999
#define MIN_STEP_TIME 0.001 /* minimum simulation step in secs */
@@ -1899,7 +1899,7 @@ pb_step_tug_load(void) {
18991899
dir = hdg2dir(bp.cur_pos.hdg);
19001900
if (tug_starts_next_plane) {
19011901
p_start = vect2_add(bp.cur_pos.pos, vect2_scmul(dir,
1902-
TUG_APPCH_SHORT_DIST));
1902+
-bp.acf.nw_z + TUG_APPCH_SHORT_DIST));
19031903
tug_set_pos(bp_ls.tug, p_start, normalize_hdg(bp.cur_pos.hdg), 0);
19041904
} else {
19051905
p_start = vect2_add(bp.cur_pos.pos, vect2_scmul(dir,
@@ -1929,7 +1929,7 @@ pb_step_start(void) {
19291929

19301930
if (tug_starts_next_plane) {
19311931
left_off = vect2_add(bp.cur_pos.pos, vect2_scmul(dir,
1932-
TUG_APPCH_SHORT_DIST));
1932+
-bp.acf.nw_z + TUG_APPCH_SHORT_DIST));
19331933
tug_set_pos(bp_ls.tug, left_off, normalize_hdg(bp.cur_pos.hdg), 0.1 * bp_ls.tug->veh.max_fwd_spd);
19341934
p_end = vect2_add(bp.cur_pos.pos, vect2_scmul(dir,
19351935
(-bp.acf.nw_z) + bp_ls.tug->info->apch_dist));

0 commit comments

Comments
 (0)