A drink driving dental hygienist from Dundee was found to be twice the limit after misjudging the effect of cough medicine, a court heard.