added comments

This commit is contained in:
Marco Zeisler 2021-05-17 18:29:43 +02:00
parent 96f187910b
commit aa95110263

View File

@ -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