Complex sentence: The legs could be raised or lowered by the pilot via a crank-driven chain and an automatic locking device fixed the gear up or down.
Split into simpler sentences: The legs could be raised or lowered by the pilot via a crank-driven chain. An automatic locking device fixed the gear up or down.