A man who shot at police and bystanders from on top of a firetruck at a Windsor hotel has been sentenced to more than 200 years in prison.