MPU6050 head tracking

I have had some success using the MPU6050 and an arduino to operate a camera gimbal, yaw, pitch and roll. It works quite well. I want to use this in a moving vehicle, where in lies the problem, I want the gimbal to look where I look, without interference from the motion of the vehicle. Anyone have any ideas, how I could accomplish this? I thought about adding a second MPU6050, The idea was to have one MPU6050 attached to a helmet and the second MPU6050 attached to the vehicle so the helmet mounted MPU would know it's relative position to the vehicle mounted MPU. Basically I want the gimbal position locked to the vehicles position unless I turn my head.

Thanks for looking, hope that makes sense.

The MPU6050 can't determine absolute orientation (of your head, for example) because it has no magnetometer.

For absolute orientation sensing, the BNO055 (Adafruit) works reasonably well out of the box. You do need to go through the internal calibration procedure after every power up, but that can be overriden with predetermined offsets.

Keep in mind that a vehicle will distort the Earth's magnetic field, which could play havoc with the magnetometer. One step at a time.

Thanks for the info!