Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pysense-example/lib/CayenneLPP.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def add_barometric_pressure(self, channel, value):
self.buffer.extend(struct.pack('b', val >> 8))
self.buffer.extend(struct.pack('b', val))

def add_gryrometer(self, channel, x, y, z):
def add_gyrometer(self, channel, x, y, z):
vx = math.floor(x * 100)
vy = math.floor(y * 100)
vz = math.floor(z * 100)
Expand Down
2 changes: 1 addition & 1 deletion pysense-example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
print('Roll', li.roll())
print('Pitch', li.pitch())
lpp.add_accelerometer(1, li.acceleration()[0], li.acceleration()[1], li.acceleration()[2])
lpp.add_gryrometer(1, li.roll(), li.pitch(), 0)
lpp.add_gyrometer(1, li.roll(), li.pitch(), 0)

print('\n\n** Digital Ambient Light Sensor (LTR-329ALS-01)')
print('Light', lt.light())
Expand Down
2 changes: 1 addition & 1 deletion pytrack-example/lib/CayenneLPP.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def add_barometric_pressure(self, channel, value):
self.buffer.extend(struct.pack('b', val >> 8))
self.buffer.extend(struct.pack('b', val))

def add_gryrometer(self, channel, x, y, z):
def add_gyrometer(self, channel, x, y, z):
vx = math.floor(x * 100)
vy = math.floor(y * 100)
vz = math.floor(z * 100)
Expand Down
2 changes: 1 addition & 1 deletion pytrack-example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
print('Roll', li.roll())
print('Pitch', li.pitch())
lpp.add_accelerometer(1, li.acceleration()[0], li.acceleration()[1], li.acceleration()[2])
lpp.add_gryrometer(1, li.roll(), li.pitch(), 0)
lpp.add_gyrometer(1, li.roll(), li.pitch(), 0)

print('\n\n** GPS (L76GNSS)')
loc = gnss.coordinates()
Expand Down