def update(self):
self._controller.update(self._id, wake_if_asleep=False)<EOL>data = self._controller.get_drive_params(self._id)<EOL>if data:<EOL><INDENT>self.__longitude = data['<STR_LIT>']<EOL>self.__latitude = data['<STR_LIT>']<EOL>self.__heading = data['<STR_LIT>']<EOL><DEDENT>if self.__longitude and self.__latitude and self.__heading:<EOL><INDENT>self.__location = {'<STR_LIT>': self.__longitude,<EOL>'<STR_LIT>': self.__latitude,<EOL>'<STR_LIT>': self.__heading}<EOL><DEDENT>
Update the current GPS location.