mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-21 09:33:54 +08:00
* get platform_str from the enum name
* fix tests
* add migration table
* remove impossible todo
* Add link to PR in MIGRATION table
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN
* rename RAM_HD to RAM_HD_5TH_GEN
* rename references to RAM_HD and RAM_1500
* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC
* remove MOCK from fingerprints.py
* change hard-coded car model in test_can_fingerprint.py/test_timing
* migration
* update ref
* space
* prius
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae
23 lines
590 B
Python
Executable File
23 lines
590 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
import cereal.messaging as messaging
|
|
|
|
if __name__ == "__main__":
|
|
while True:
|
|
pm = messaging.PubMaster(['carParams', 'carState'])
|
|
batt = 1.
|
|
while True:
|
|
msg = messaging.new_message('carParams')
|
|
msg.carParams.carName = "BODY"
|
|
msg.carParams.notCar = True
|
|
pm.send('carParams', msg)
|
|
|
|
for b in range(100, 0, -1):
|
|
msg = messaging.new_message('carState')
|
|
msg.carState.charging = True
|
|
msg.carState.fuelGauge = b / 100.
|
|
pm.send('carState', msg)
|
|
time.sleep(0.1)
|
|
|
|
time.sleep(1)
|