When the Bockscar -- borrowed from its regular pilot , Capt . Fred Bock , but flown on the Nagasaki mission by Maj. Charles W. Sweeney -- took off for Japan , Commander Ashworth was aboard as the crew 's chief technical expert on the bomb .