mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Merge remote-tracking branch 'upstream/master'
This commit is contained in:
		@@ -9,7 +9,7 @@ several simple smoothing algorithms for incoming data values. These include
 | 
				
			|||||||
 - Mean
 | 
					 - Mean
 | 
				
			||||||
 - Standard Deviation
 | 
					 - Standard Deviation
 | 
				
			||||||
 - High Pass Smoothing
 | 
					 - High Pass Smoothing
 | 
				
			||||||
 - Loww Pass Smoothing
 | 
					 - Low Pass Smoothing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Install
 | 
					Install
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name"          : "node-red-node-pi-sense-hat",
 | 
					    "name"          : "node-red-node-pi-sense-hat",
 | 
				
			||||||
    "version"       : "0.0.10",
 | 
					    "version"       : "0.0.11",
 | 
				
			||||||
    "description"   : "A Node-RED node to interact with a Raspberry Pi Sense HAT",
 | 
					    "description"   : "A Node-RED node to interact with a Raspberry Pi Sense HAT",
 | 
				
			||||||
    "repository" : {
 | 
					    "repository" : {
 | 
				
			||||||
        "type":"git",
 | 
					        "type":"git",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -196,7 +196,8 @@ def idle_work():
 | 
				
			|||||||
  now = time.time()
 | 
					  now = time.time()
 | 
				
			||||||
  if hf_enabled and (now-last_hf_time > hf_interval):
 | 
					  if hf_enabled and (now-last_hf_time > hf_interval):
 | 
				
			||||||
    orientation = SH.get_orientation()
 | 
					    orientation = SH.get_orientation()
 | 
				
			||||||
    compass = SH.get_compass()
 | 
					    # Calling get_compass interferes with get_orientation - so just reuse its value
 | 
				
			||||||
 | 
					    compass = orientation['yaw']
 | 
				
			||||||
    gyro = SH.get_gyroscope_raw()
 | 
					    gyro = SH.get_gyroscope_raw()
 | 
				
			||||||
    accel = SH.get_accelerometer_raw()
 | 
					    accel = SH.get_accelerometer_raw()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user