mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 06:49:19 +02:00
springbrakeactive on uart
This commit is contained in:
@@ -616,7 +616,8 @@ TTrain::get_state() const {
|
||||
{ fHCurrent[ ( mvControlled->TrainType & dt_EZT ) ? 0 : 1 ], fHCurrent[ 2 ], fHCurrent[ 3 ] },
|
||||
ggLVoltage.GetValue(),
|
||||
mvOccupied->DistCounter,
|
||||
iRadioChannel
|
||||
iRadioChannel,
|
||||
btLampkaSpringBrakeActive.GetValue()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
1
Train.h
1
Train.h
@@ -105,6 +105,7 @@ class TTrain {
|
||||
float lv_voltage;
|
||||
double distance;
|
||||
int radio_channel;
|
||||
bool springbrake_active;
|
||||
};
|
||||
typedef std::tuple<std::string, std::shared_ptr<python_rt>, std::unique_ptr<python_screen_viewer>> screen_entry;
|
||||
typedef std::vector<screen_entry> screen_map;
|
||||
|
||||
3
uart.cpp
3
uart.cpp
@@ -280,7 +280,8 @@ void uart_input::poll()
|
||||
m_trainstatecab << 2
|
||||
| trainstate.recorder_braking << 3
|
||||
| trainstate.recorder_power << 4
|
||||
| trainstate.radio_stop <<5
|
||||
| trainstate.radio_stop << 5
|
||||
| trainstate.springbrake_active << 6
|
||||
| trainstate.alerter_sound << 7),
|
||||
//byte 7-8
|
||||
SPLIT_INT16(brake_press),
|
||||
|
||||
Reference in New Issue
Block a user