Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
izsoandras committed Jan 13, 2022
1 parent 6f60d05 commit c805dee
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions my_gui/custom_elements/course_view/CourseMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,24 +248,24 @@ def update_car(self):

def update_view(self):
if self.dataholder.hasNew:
self.car_state = self.dataholder.getData()[-1]
# self.car_state = self.dataholder.getData()[-1]
self.invalidate()
if self.car_state['event'] == NAVI_EVENT_CROSSING_FRONT:
msg = 'NAVI_EVENT_CROSSING_FRONT'
elif self.car_state['event'] == NAVI_EVENT_CROSSING_REAR:
msg = 'NAVI_EVENT_CROSSING_REAR'
elif self.car_state['event'] == NAVI_EVENT_CROSSING_LEFT:
msg = 'NAVI_EVENT_CROSSING_LEFT'
elif self.car_state['event'] == NAVI_EVENT_START_ROUTE:
msg = 'NAVI_EVENT_START_ROUTE'
elif self.car_state['event'] == NAVI_EVENT_EXIT_LEFT:
msg = 'NAVI_EVENT_EXIT_LEFT'
elif self.car_state['event'] == NAVI_EVENT_INVALID:
msg = 'NAVI_EVENT_INVALID'
else:
msg = 'Unknown navigation event!'

self.logger.info(msg)
# if self.car_state['event'] == NAVI_EVENT_CROSSING_FRONT:
# msg = 'NAVI_EVENT_CROSSING_FRONT'
# elif self.car_state['event'] == NAVI_EVENT_CROSSING_REAR:
# msg = 'NAVI_EVENT_CROSSING_REAR'
# elif self.car_state['event'] == NAVI_EVENT_CROSSING_LEFT:
# msg = 'NAVI_EVENT_CROSSING_LEFT'
# elif self.car_state['event'] == NAVI_EVENT_START_ROUTE:
# msg = 'NAVI_EVENT_START_ROUTE'
# elif self.car_state['event'] == NAVI_EVENT_EXIT_LEFT:
# msg = 'NAVI_EVENT_EXIT_LEFT'
# elif self.car_state['event'] == NAVI_EVENT_INVALID:
# msg = 'NAVI_EVENT_INVALID'
# else:
# msg = 'Unknown navigation event!'
#
# self.logger.info(msg)

if self._invalid:
self.redraw()
Expand Down Expand Up @@ -335,7 +335,7 @@ def on_btn_send_click(self):

for d in self.disabled:
if self.node_info['name'][d['idx']] is not None:
msg = msg + self.node_info['name'][d['idx']]
msg = msg + str(self.node_info['name'][d['idx']]).lower()

msg = msg + '\n'

Expand Down

0 comments on commit c805dee

Please sign in to comment.