コード例 #1
0
ファイル: driverhud.py プロジェクト: benjiboy50fonz/pybot
def showAlert(msg, type="Alerts"):
    """Display a text notification on the dashboard."""

    messages = SmartDashboard.getStringArray(type, [])
    messages = [x for x in messages if x]
    messages.append(msg)
    SmartDashboard.putStringArray(type, messages)