The sequence of events that led to a 95-year-old woman being fatally tasered by a police officer have been laid bare in court.