def __init__(self):
        """
        Initialize brickpi3 and set name, speed and status(direction)
        """
        self.BP = brickpi3.BrickPi3()
        self.BP.offset_motor_encoder(self.BP.PORT_A, self.BP.get_motor_encoder(self.BP.PORT_A))
        self.BP.offset_motor_encoder(self.BP.PORT_A, self.BP.get_motor_encoder(self.BP.PORT_D))
        self.BP.set_motor_limits(self.BP.PORT_A, 50, 200)
        self.BP.set_motor_limits(self.BP.PORT_D, 50, 200)
        self.name = "IntelCar"
        self.speed = 18        
        self.status = CAR_DIRECTION.FWD
        log.info("Car {} has been started with speed: {}".format(str(self.name), str(self.speed)))
        time.sleep(0.02) # delay for 0.02 seconds (20ms) to reduce the Raspberry Pi CPU load.

        Initialize brickpi3 and set name, speed and status(direction)
        
apps/driving_pi/car_pi.py