added comments
This commit is contained in:
parent
96f187910b
commit
aa95110263
@ -96,10 +96,14 @@ class Vehicle:
|
||||
:return: "Datenaufzeichnung für automatisiertes Fahren" (DAF) object
|
||||
"""
|
||||
return DAF(vehicle_identification_number=self.vin,
|
||||
gps_location=self.gps_location,
|
||||
# first deduct nce - is calculated, sets velocity to 0 if NCE
|
||||
near_crash_event=self.nce,
|
||||
velocity=self.velocity,
|
||||
# then get current location based on last location and current speed
|
||||
gps_location=self.gps_location,
|
||||
# finally get last_update, is updated by gps_location deduction
|
||||
timestamp=self.last_update,
|
||||
# is set to 0 if nce
|
||||
velocity=self.velocity,
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user