Watch this crazy video of an unconscious pilot saved by his plane's computer

If you’ve ever been driving on a long road trip, you might know the horrifying feeling of being drowsy and nodding off behind the wheel — even for a moment.

Your heart drops into your stomach when you realize what happened. Now imagine waking up in an F-16 flying straight to the ground while approaching supersonic speed.

A trainee pilot conducting basic fighter maneuver training with the Arizona Air National Guard suffered G-LOC, or gravity-induced loss of consciousness, while in a roll. The student hit 8.3 Gs and passed out.

Related: Watch as flight students gut out high G training >

The Air Force released this newly declassified video from the aircraft’s heads-up display on September 13th, which shows the plane’s Automatic Ground Collision Avoidance System kick on to save the pilot, who was still unconscious after 22 seconds.

The video is harrowing as the worried instructor repeatedly yells at the pilot, almost begging him to recover.

According to Aviation Week’s Guy Norris, this is the fourth save from the Auto-GCAS since it was introduced to the Air Force in 2014. The computer uses pre-programmed terrain info against a prediction of the plane’s trajectory. The GCAS autopilot takes over when the prediction touches the ground.

In this case, the GCAS took over at just 8,760 feet. The student then wakes back up and retakes control at 4,370 feet.

TOP ARTICLES
Here's why the Russian navy just took a Philippine vacation

Russia has sent three antisubmarine ships to Manila in an effort to build stronger ties with and dissuade American ties from the Philippines.

This is why the Pentagon is investigating the ambush in Niger that killed 4 special operators

What exactly happened in Niger, and how did we lose four service members in a surprise ambush. There are questions, and McCain and Mattis want answers.

This South Korean howitzer can bring the thunder if Pyongyang attacks

The K9 can hit a target 25 miles away with three rounds in 15 seconds.

7 reasons why Obi-wan Kenobi was basically Ulysses S. Grant

Just replace Obi-wan's Spirit form at the end of Return of the Jedi with Grant's love of spirits and you could make a case for one inspiring the other.

This new technology can help tank crews 'see' through their armor

Being buttoned up in a tank used to mean being blind as a bat. With this new technology, that's no longer the case.

This is how John Kelly shut down speculation on President Trump's gold star family call

"If you're not in the family, if you've never worn the uniform, if you've never been in combat, you can't even imagine how to make that call," Kelly said.

Blumhouse and WATM team up to produce 'Searching for Bergdahl'

Blumhouse Television and WATM are teaming up to produce the documentary "Searching for Bergdahl," the untold story of the seven-year search for the missing soldier.

This is the real reason John McCain's Liberty Medal speech was so epic

When US media focused on a jab at President Trump, they missed the parting thoughts of a veteran and public servant of more than 60 years.

This little bot can take a lickin' and keep on tickin' for troops on assault

Weighing a little over five pounds, the FirstLook can handle being thrown into a hostile environment.

This is one of the deadliest kamikaze attacks caught on film

Japanese kamikaze pilots struck fear in the hearts of allied troops as they conducted choreographed nose-dives right into U.S. warships during WWII.