FILE - This Sunday, Dec. 22, 2019 file photo shows the Boeing Starliner spacecraft after it landed in White Sands, N.M. On Friday, Feb. 28, 2020, Boeing acknowledged it failed to conduct full and adequate software tests before the botched space debut of its astronaut capsule late last year. (Bill Ingalls/NASA via AP)

FILE - This Sunday, Dec. 22, 2019 file photo shows the Boeing Starliner spacecraft after it landed in White Sands, N.M. On Friday, Feb. 28, 2020, Boeing acknowledged it failed to conduct full and adequate software tests before the botched space debut of its astronaut capsule late last year. (Bill Ingalls/NASA via AP)

CAPE CANAVERAL, Fla. (AP) — Boeing acknowledged Friday it failed to conduct full and adequate software tests before the botched space debut of its astronaut capsule late last year.

A software error left the Starliner capsule in the wrong orbit in December and precluded a docking with the International Space Station. Another software flaw could have ended up destroying the capsule, if not fixed right before reentry.

A Boeing vice president, John Mulholland, said both mistakes would have been caught if complete, end-to-end testing had been conducted in advance and actual flight equipment used instead of substitutes.

ADVERTISEMENT

“We know that we need to improve,” he said.

The company is still uncertain when its next test flight might occur and whether astronauts might be aboard. NASA — which will have the final say — will announce the outcome of the ongoing investigation review next Friday. The first flight test had no crew.

SpaceX, meanwhile, aims to launch its Dragon crew capsule with NASA astronauts this spring.

Mulholland, who serves as the Starliner program manager, said the company is still reviewing the Starliner’s 1 million lines of code to make certain no other problems exist.

Because Boeing tested the Starliner’s software in segments rather than in one continuous stream to simulate the flight to and from the space station, the company failed to catch an error that knocked the capsule’s internal timer off by 11 hours shortly after liftoff. An unrelated communication problem prevented flight controllers from quickly sending commands in a bid to salvage the docking portion of the mission.

Then, just hours before the capsule’s early return to New Mexico, a second software error was detected by ground controllers. This mistake stemmed from the use of substitute equipment during preflight testing rather than actual flight hardware.

Mulholland stressed that the situation had nothing to do with saving money.

“We’re going to go make it right and we’re going to have a fantastic spacecraft going forward,” he said.

The December mission was supposed to be the company’s last major hurdle before launching the first Starliner crew — two NASA astronauts and a Boeing astronaut. NASA astronauts have not launched from home soil since the space shuttle program ended in 2011.

___

The Associated Press Health and Science Department receives support from the Howard Hughes Medical Institute’s Department of Science Education. The AP is solely responsible for all content.