[modules] dc: add dc_distance function

- use dc_gps_count in distance mode
- cleanup some variables