Danville man gets 7 years on felony weapons charge