A former highway patrol trooper was sentenced Thursday in federal court to three years in jail for possession of child pornography.