A man who struck a Carlsbad police officer in the head with a skateboard was sentenced this week to 10 years in state prison.