 Complete the following phrase:  He was second son of Robert Beatson, Esq., of Kilrie, Fife County, Scotland, and a nephew or cousin of Robert Beatson. He obtained a cadetship in 1775, and was appointed to an ensigncy in the Madras infantry, 21 Nov. 1776. He served as an engineer officer in the war with Hyder Ali, although he appears never to have belonged to the engineers. As lieutet, he served with the Guides in Lord Cornwalliss campaigns against Tippu Sultan; and eight years after, as a field officer, was surveyor-general with the army under Lieutet-general Harris, which 