<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.mchobby.be/index.php?action=history&amp;feed=atom&amp;title=RB-ARD-ROBOT-Func-compassRead</id>
	<title>RB-ARD-ROBOT-Func-compassRead - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mchobby.be/index.php?action=history&amp;feed=atom&amp;title=RB-ARD-ROBOT-Func-compassRead"/>
	<link rel="alternate" type="text/html" href="https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-compassRead&amp;action=history"/>
	<updated>2026-10-22T04:04:09Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-compassRead&amp;diff=7382&amp;oldid=prev</id>
		<title>Admin : Page créée avec « {{Arduino-Robot-NAV}}  &lt;h4&gt;compassRead()&lt;/h4&gt;  == Description == Classe RobotControl, librairie d'[[Arduino Robot-Librairie|Ar... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-compassRead&amp;diff=7382&amp;oldid=prev"/>
		<updated>2013-09-17T06:52:51Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « {{Arduino-Robot-NAV}}  &amp;lt;h4&amp;gt;compassRead()&amp;lt;/h4&amp;gt;  == Description == Classe &lt;a href=&quot;/index.php?title=Arduino_Robot-Librairie#Classe_RobotControl&quot; title=&quot;Arduino Robot-Librairie&quot;&gt;RobotControl&lt;/a&gt;, librairie d&amp;#039;[[Arduino Robot-Librairie|Ar... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Arduino-Robot-NAV}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt;compassRead()&amp;lt;/h4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].&lt;br /&gt;
&lt;br /&gt;
Fourni la direction actuelle mesurée par la boussole disponible sur la carte. Les valeurs sont exprimées en degrés de rotation (dans le sens horlogique) par rapport au Nord. Donc l'Est est à 90, le Sud à 180 et Ouest à 270. &lt;br /&gt;
&lt;br /&gt;
== Syntaxe ==&lt;br /&gt;
&lt;br /&gt;
Robot.compassRead() &lt;br /&gt;
&lt;br /&gt;
== Paramètres ==&lt;br /&gt;
&lt;br /&gt;
aucun&lt;br /&gt;
&lt;br /&gt;
== Résultat ==&lt;br /&gt;
&lt;br /&gt;
int (entier): 0 à 359, représente le nombre de degrés de rotation à partir du Nord. &lt;br /&gt;
&lt;br /&gt;
== Note ==&lt;br /&gt;
&lt;br /&gt;
La boussole peut être perturbée par un champs magnétique aux alentours. &lt;br /&gt;
&lt;br /&gt;
== Exemple ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#include &amp;lt;ArduinoRobot.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void setup(){&lt;br /&gt;
  Robot.begin();&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
void loop(){&lt;br /&gt;
  Serial.println(Robot.compassRead());&lt;br /&gt;
  delay(100);&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Voir aussi ==&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-analogRead|analogRead()]]&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-analogWrite|analogWrite()]]&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-digitalWrite|digitalWrite()]]&lt;br /&gt;
&lt;br /&gt;
{{Arduino-Robot-TRAILER}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>