mirror of https://github.com/ArduPilot/ardupilot
fixed text encoding
git-svn-id: https://arducopter.googlecode.com/svn/trunk@352 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a81fad58b8
commit
a8b995ae1a
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Example of APM_Compass library (HMC5843 sensor).
|
Example of APM_Compass library (HMC5843 sensor).
|
||||||
Code by Jordi Muñoz and Jose Julio. DIYDrones.com
|
Code by Jordi MuÒoz and Jose Julio. DIYDrones.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
|
@ -13,7 +13,7 @@ unsigned long timer;
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
APM_Compass.Init(); // Initialization
|
APM_Compass.Init(); // Initialization
|
||||||
Serial.begin(57600);
|
Serial.begin(38400);
|
||||||
Serial.println("Compass library test (HMC5843)");
|
Serial.println("Compass library test (HMC5843)");
|
||||||
delay(1000);
|
delay(1000);
|
||||||
timer = millis();
|
timer = millis();
|
||||||
|
@ -36,6 +36,6 @@ void loop()
|
||||||
Serial.print(APM_Compass.Mag_Y);
|
Serial.print(APM_Compass.Mag_Y);
|
||||||
Serial.print(",");
|
Serial.print(",");
|
||||||
Serial.print(APM_Compass.Mag_Z);
|
Serial.print(APM_Compass.Mag_Z);
|
||||||
Serial.println();
|
Serial.println(" )");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue