mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-07-25 19:32:03 +08:00
pj: shill for jp
This commit is contained in:
@@ -29,6 +29,18 @@ MINIMUM_PLOTJUGGLER_VERSION = (3, 5, 2)
|
||||
MAX_STREAMING_BUFFER_SIZE = 1000
|
||||
|
||||
|
||||
def print_jotpluggler_banner():
|
||||
purple = "\033[95m" if sys.stdout.isatty() else ""
|
||||
reset = "\033[0m" if purple else ""
|
||||
print(f"{purple}+-------------------------------------------------------------+{reset}")
|
||||
print(f"{purple}|{reset} JotPluggler is the future! Try it like this: {purple}|{reset}")
|
||||
print(f"{purple}|{reset} ./tools/jotpluggler/jotpluggler --demo --layout tuning {purple}|{reset}")
|
||||
print(f"{purple}|{reset} {purple}|{reset}")
|
||||
print(f"{purple}|{reset} PlotJuggler will be deleted soon. {purple}|{reset}")
|
||||
print(f"{purple}|{reset} Missing a feature? Open an issue or post in #dev-openpilot. {purple}|{reset}")
|
||||
print(f"{purple}+-------------------------------------------------------------+{reset}")
|
||||
|
||||
|
||||
def install():
|
||||
m = f"{platform.system()}-{platform.machine()}"
|
||||
supported = ("Linux-x86_64", "Linux-aarch64", "Darwin-arm64")
|
||||
@@ -118,10 +130,15 @@ if __name__ == "__main__":
|
||||
parser.add_argument("route_or_segment_name", nargs='?', help="The route or segment name to plot (cabana share URL accepted)")
|
||||
|
||||
if len(sys.argv) == 1:
|
||||
print_jotpluggler_banner()
|
||||
print()
|
||||
parser.print_help()
|
||||
sys.exit()
|
||||
args = parser.parse_args()
|
||||
|
||||
print_jotpluggler_banner()
|
||||
print()
|
||||
|
||||
if args.install:
|
||||
install()
|
||||
sys.exit()
|
||||
|
||||
Reference in New Issue
Block a user