Skip to content

Commit

Permalink
Remove print debug
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Apr 16, 2019
1 parent eed9295 commit 3ebe9df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions selfdrive/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,14 @@ def update(self, cp, cp_cam):
#print "distane"
#print self.distance
if self.distance < self.approachradius + self.includeradius:
print "speed"
print self.prev_distance - self.distance
#print "speed"
#print self.prev_distance - self.distance
#if speed is 5% higher than the speedlimit
if self.prev_distance - self.distance > self.speedlimit*0.00263889:
if self.v_cruise_pcm > self.speedlimit:
self.v_cruise_pcm = self.speedlimit
if self.distance < self.includeradius:
print "inside"
#print "inside"
if self.v_cruise_pcm > self.speedlimit:
self.v_cruise_pcm = self.speedlimit

Expand All @@ -492,8 +492,8 @@ def update(self, cp, cp_cam):
self.generic_toggle = bool(cp.vl["LIGHT_STALK"]['AUTO_HIGH_BEAM'])
self.tsgn1 = cp_cam.vl["RSA1"]['TSGN1']
self.spdval1 = cp_cam.vl["RSA1"]['SPDVAL1']
if self.spdval1 > 0:
print self.spdval1
#if self.spdval1 > 0:
# print self.spdval1
self.splsgn1 = cp_cam.vl["RSA1"]['SPLSGN1']
self.tsgn2 = cp_cam.vl["RSA1"]['TSGN2']
self.spdval2 = cp_cam.vl["RSA1"]['SPDVAL2']
Expand Down

0 comments on commit 3ebe9df

Please sign in to comment.