mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
This commit is contained in:
@@ -19,7 +19,7 @@ optional arguments:
|
||||
```
|
||||
usage: dump.py [-h] [--pipe] [--raw] [--json] [--dump-json] [--no-print] [--addr ADDR] [--values VALUES] [socket [socket ...]]
|
||||
|
||||
Dump communcation sockets. See cereal/services.py for a complete list of available sockets.
|
||||
Dump communication sockets. See cereal/services.py for a complete list of available sockets.
|
||||
|
||||
positional arguments:
|
||||
socket socket names to dump. defaults to all services defined in cereal
|
||||
|
||||
@@ -5,8 +5,8 @@ System tools like top/htop can only show current cpu usage values, so I write th
|
||||
Features:
|
||||
Use psutil library to sample cpu usage(avergage for all cores) of openpilot processes, at a rate of 5 samples/sec.
|
||||
Do cpu usage statistics periodically, 5 seconds as a cycle.
|
||||
Caculate the average cpu usage within this cycle.
|
||||
Caculate minumium/maximium/accumulated_average cpu usage as long term inspections.
|
||||
Calculate the average cpu usage within this cycle.
|
||||
Calculate minumium/maximum/accumulated_average cpu usage as long term inspections.
|
||||
Monitor multiple processes simuteneously.
|
||||
Sample usage:
|
||||
root@localhost:/data/openpilot$ python selfdrive/debug/cpu_usage_stat.py boardd,ubloxd
|
||||
|
||||
@@ -6,7 +6,7 @@ firmware versions. If you want to try on a new radar make sure to note the defau
|
||||
in case it's different from the other radars and you need to revert the changes.
|
||||
|
||||
After changing the config the car should not show any faults when openpilot is not running.
|
||||
These config changes are persistent accross car reboots. You need to run this script again
|
||||
These config changes are persistent across car reboots. You need to run this script again
|
||||
to go back to the default values.
|
||||
|
||||
USE AT YOUR OWN RISK! Safety features, like AEB and FCW, might be affected by these changes."""
|
||||
|
||||
@@ -59,6 +59,6 @@ if __name__ == '__main__':
|
||||
print(f" {(stop_time - start_time).total_seconds():.2f} Seconds {voltage_average[1]} samples")
|
||||
print("----------------------------------------------------------------")
|
||||
|
||||
# reenable charging
|
||||
# re-enable charging
|
||||
os.system('echo "1" > /sys/class/power_supply/battery/charging_enabled')
|
||||
print("charging enabled\n")
|
||||
|
||||
@@ -168,7 +168,7 @@ if __name__ == "__main__":
|
||||
break
|
||||
|
||||
print()
|
||||
# Print FW versions that need to be added seperated out by car and address
|
||||
# Print FW versions that need to be added separated out by car and address
|
||||
for car, m in sorted(mismatches.items()):
|
||||
print(car)
|
||||
addrs = defaultdict(list)
|
||||
|
||||
Reference in New Issue
Block a user