%function bstruct = getgps()
%function bstruct = getgps(duration,minhits)
function bstruct = getgps(duration,minhits)
[bdefaults,bnames] = behaviorDefaults;
bstruct = bdefaults{indexof(bnames,'getgps')};
if ~nargin,
	duration = 180;
	minhits = 120;
end
bstruct = setfield(bstruct,'duration',duration);
bstruct = setfield(bstruct,'minhits',minhits);
