Modifications

Sauter à la navigation Sauter à la recherche
Ligne 314 : Ligne 314 :  
ctime = time.time() # Now
 
ctime = time.time() # Now
 
while True:
 
while True:
     # Main Loop Content
+
     # Main Loop body
 
     ...
 
     ...
 
     ...
 
     ...
Ligne 321 : Ligne 321 :  
     time.sleep(0.4) # wait 0.4 second between iterations
 
     time.sleep(0.4) # wait 0.4 second between iterations
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
The Mainloop body executes the following steps:
 +
# Reading the sensors data
 +
# Preparing the message
 +
# Sending message
 +
# Switch on the onboard LED
 +
# Log message
 +
# Send message
 +
# Turn of the LED
    
== Fault tolerant design ==
 
== Fault tolerant design ==
29 917

modifications

Menu de navigation