Skip to content

Commit

Permalink
Minor fixes for position reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Jan 12, 2024
1 parent cc5ecaf commit 10b81ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EVC/Euroradio/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class communication_session
bool train_data_ack_pending;
bool train_data_ack_sent;
bool train_running_number_sent;
bool accept_unknown_position=false;
bool accept_unknown_position=true;
bool closing;
session_status status = session_status::Inactive;
safe_radio_status radio_status = safe_radio_status::Disconnected;
Expand Down
2 changes: 2 additions & 0 deletions EVC/Packets/radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ ETCS_packet *get_position_report()
r->V_TRAIN.set_value(V_est);
r->M_MODE.set_value(mode);
r->M_LEVEL.set_value(level);
r->NID_NTC.rawdata = nid_ntc;
return r;
} else {
PositionReportBasedOnTwoBaliseGroups *r = new PositionReportBasedOnTwoBaliseGroups();
Expand Down Expand Up @@ -351,6 +352,7 @@ ETCS_packet *get_position_report()
r->V_TRAIN.set_value(V_est);
r->M_MODE.set_value(mode);
r->M_LEVEL.set_value(level);
r->NID_NTC.rawdata = nid_ntc;
return r;
}
return nullptr;
Expand Down

0 comments on commit 10b81ad

Please sign in to comment.