Files
openpilot/selfdrive/carrot_set.py
Comma Device 3721ecbf8a Release 260111
2026-01-11 18:23:29 +08:00

15 lines
335 B
Python
Executable File

#!/usr/bin/env python3
import sys
from openpilot.common.params import Params
def set_params():
key = sys.argv[1]
value = sys.argv[2]
print(f"Setting {key} to {value}")
print(f"Current value: {Params().get(key)}")
Params().put(key, value)
print(f"New value: {Params().get(key)}")
if __name__ == "__main__":
set_params()