Code used in testing capsule endoscopy in microgravity