add description to alert

pull/33527/head
Shane Smiskol 12 months ago
parent 557c3dde19
commit 17e0fa8f36
  1. 4
      tools/longitudinal_maneuvers/maneuversd.py

@ -143,10 +143,10 @@ def main():
accel = maneuver.get_accel(v_ego, cs.cruiseState.enabled, cs.cruiseState.standstill)
if maneuver.active:
alert_msg.alertDebug.alertText1 = 'Maneuver: Active'
alert_msg.alertDebug.alertText1 = f'Maneuver Active: {accel:0.2f} m/s^2'
else:
alert_msg.alertDebug.alertText1 = f'Reaching Speed: {maneuver.initial_speed * CV.MS_TO_MPH:0.2f} mph'
alert_msg.alertDebug.alertText2 = f'Requesting {accel:0.2f} m/s^2'
alert_msg.alertDebug.alertText2 = f'{maneuver.description}'
pm.send('alertDebug', alert_msg)
longitudinalPlan.aTarget = accel

Loading…
Cancel
Save