[PATCH 4/6] Create gaschange events from Poseidon MkVI logs

Anton Lundin glance at acc.umu.se
Wed Nov 19 22:30:20 PST 2014


On 19 November, 2014 - Dirk Hohndel wrote:

> On Wed, Nov 19, 2014 at 10:14:22PM +0100, Anton Lundin wrote:
> > @@ -658,6 +662,14 @@ int parse_txt_file(const char *filename, const char *csv)
> >  					case 39:
> >  						add_sample_data(sample, POSEIDON_TEMP, value);
> >  						break;
> > +					case 85:
> > +						//He diluent part in %
> > +						gaschange ^= value << 16;
> > +						break;
> > +					case 86:
> > +						//O2 diluent part in %
> > +						gaschange ^= value;
> > +						break;
> >  					default:
> 
> Bitwise XOR? Seriously?
> 

It just builds a "regular" gaschange value. I can switch it to using add
there instead, or feel free to s/\^/+/ it. The result is the same.


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list