Incredible footage shows a Tesla car on autopilot function halting a dangerous collision between the vehicle and a bear and her two cubs.

Utah native Andrew Whittle posted a video on September 25 showing his Tesla Model 3 stop while he said he was on a road trip from Utah to Montana.

The vehicle was travelling at 50mph according to Whittle when it detected the family of bears ahead.

A mother bear and two cubs are seen crossing the road, before she appears startled by the lights and comes to a stop with her babies.

Incredible footage shows a Tesla car on autopilot function halting a dangerous collision between the vehicle and a bear and her two cubs, (pictured)

Posting the video to Youtube, Whittle wrote: 'This was an amazing demonstration of how much better the Autopilot function has gotten since I received the car.

'Not only did autopilot sense the family of bears in the dark while the car was going 50mph, but the Dashcam feature recorded the whole thing in great resolution! Thanks again Tesla!.'

Tesla has been in the spotlight recently over 'autopilot accidents'.Federal investigators concluded in June 2018 that a Tesla SUV involved in a fatal accident in California earlier this year accelerated before it crashed, killing its driver.

The vehicle was travelling at 50mph according to Whittle when it detected the family of bears ahead

A mother bear and two cubs are seen crossing the road, before she appears startled by the lights and comes to a stop with her babies, (pictured)

The Tesla Model X had been operating using the firm's Autopilot software when it collided with a freeway barrier in Silicon Valley, California.

The National Transportation Safety Board, in a preliminary report on the March 23 crash, also said that data shows the Model X SUV did not brake or try to steer around the barrier in the three seconds before the crash in Silicon Valley.

Earlier this month, video showed a California Tesla driver sleeping behind the wheel as his car speeds down the highway on autopilot.

The driver said it was an 'amazing demonstration' of the improvement in Tesla's Autopilot function since he purchased. Pictured is a version of the Tesla Model 3

The footage obtained by Storyful shows the unconscious driver sitting upright with his head tilted back as his car speeds down Interstate 280 in San Mateo, California in the San Francisco Bay Area.

The person who filmed the Tesla shows him or herself driving at least 82 mph to keep up with the unconscious Tesla driver.

The Bay Area incident is the latest in a string of sleeping Tesla driver sightings across the U.S.

In September, a Massachusetts motorist caught a Tesla driver and his female passenger snoozing while the car drove at high speeds on the state turnpike in the Boston metro area.

Dakota Randall, who shot video of the incident, told the Boston Globe he honked his horn at the driver, who was traveling 55-60 mph at the time, but the man and his passenger would not wake up.

Tesla did not immediately respond to DailyMail.com's request for comment earlier this month.

The company has issued multiple statements through the media telling its drivers it's not safe to fall asleep behind the wheel, even when using autopilot.

At least four fatal accidents involving Tesla drivers using autopilot have been reported in recent years.