Arduino/LSM303Soft/LSM303Soft.cpp
/*
Returns the angular difference in the horizontal plane between a
default vector and north, in degrees.

The default vector here is chosen to point along the surface of the
PCB, in the direction of the top of the text on the silkscreen.
This is the +X axis on the Pololu LSM303D carrier and the -Y axis on
the Pololu LSM303DLHC, LSM303DLM, and LSM303DLH carriers.
*/
Returns the angular difference in the horizontal plane between a
default vector and north, in degrees.

The default vector here is chosen to point along the surface of the
PCB, in the direction of the top of the text on the silkscreen.
This is the +X axis on the Pololu LSM303D carrier and the -Y axis on
the Pololu LSM303DLHC, LSM303DLM, and LSM303DLH carriers.
Returns the angular difference in the horizontal plane between a default vector and north in degrees . The default vector here is chosen to point along the surface of the PCB in the direction of the top of the text on the silkscreen . This is the + X axis on the Pololu LSM303D carrier and the - Y axis on the Pololu LSM303DLHC LSM303DLM and LSM303DLH carriers .
float LSM303Soft::heading(void)
{
  if (_device == device_D)
  {
    return heading((vector<int>){1, 0, 0});
  }
  else
  {
    return heading((vector<int>){0, -1, 0});
  }
}
float LSM303Soft :: heading ( void ) { if ( _device == device_D ) { return heading ( ( vector < int > ) { 1 , 0 , 0 } ) ; } else { return heading ( ( vector < int > ) { 0 , -1 , 0 } ) ; } }
Returns the angular difference in the horizontal plane between a
default vector and north, in degrees.
Returns the angular difference in the horizontal plane between a default vector and north in degrees .