Modifications

Sauter à la navigation Sauter à la recherche
110 octets ajoutés ,  29 octobre 2018 à 21:56
Ligne 73 : Ligne 73 :  
The code proposed here under has been tested up to 22620128 (22.6 millions) iterations without issue, time when we decided to ends the test :-) .
 
The code proposed here under has been tested up to 22620128 (22.6 millions) iterations without issue, time when we decided to ends the test :-) .
   −
== Structure the data ==
+
== Structuring the data ==
 
The radio module only sends buffer of binary data to the receiver. This is a bit rough but efficient.
 
The radio module only sends buffer of binary data to the receiver. This is a bit rough but efficient.
   Ligne 94 : Ligne 94 :  
* '''timing_info''' as data2. This would help to create timing chart or time base data analysis. We suggest to use the Arduino's {{fname|millis()}} function which count the number of milliseconds since the last microcontroler reset.  
 
* '''timing_info''' as data2. This would help to create timing chart or time base data analysis. We suggest to use the Arduino's {{fname|millis()}} function which count the number of milliseconds since the last microcontroler reset.  
   −
As explained later in the code the {{fname|packet_str}} variable contains the message to be transmitted to the ground.
+
As explained later in the code the {{fname|packet_str}} variable contains the message to be transmitted to the ground. The Arduino's {{fname|String}} class would ease the transformation of data to their string representation.  
 
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
 
String packet_str = String( ":"+String(packetnum,DEC)+"|" );
 
String packet_str = String( ":"+String(packetnum,DEC)+"|" );
29 837

modifications

Menu de navigation