pombreda / nxt-python

Automatically exported from code.google.com/p/nxt-python
GNU General Public License v3.0
0 stars 0 forks source link

adding the hitechnic gyro sensor to sensors.py #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have attached a patch that provides the methods for the hitechnic
gyro sensor. I haven't had time to add the calibration function yet but I
hope to do that in a couple days. 

this is the description included in the class header

#This class is for the hitechnic gryo accelerometer. When the gryo is
#not moving there will be a constant offset that will change with
#temperature and other ambient factors. It might be appropriate to
#write a calibration function to account for this offset.
#
#TODO:calibration

Original issue reported on code.google.com by meldu...@gmail.com on 9 Jun 2010 at 1:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you, with any luck this will be included in v2.0 or v1.2.

Original comment by marcus@wanners.net on 9 Jun 2010 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by marcus@wanners.net on 23 Jun 2010 at 1:09

GoogleCodeExporter commented 9 years ago
Added in r132.

Original comment by marcus@wanners.net on 24 Jun 2010 at 9:19

GoogleCodeExporter commented 9 years ago
If possible, please test this sensor with the beta according to the note on the 
front page. Thanks!

Original comment by marcus@wanners.net on 2 Jul 2010 at 10:52

GoogleCodeExporter commented 9 years ago
 the super of the Gyro function is not correct ..

    def __init__(self, brick, port):
-       super(GyroSensor, self).__init__(brick, port)
+       super(Gyro, self).__init__(brick, port)
        self.set_input_mode(Type.ANGLE, Mode.RAW)
        self.offset = 0

Original comment by meldu...@gmail.com on 6 Jul 2010 at 5:44

GoogleCodeExporter commented 9 years ago
Possibly fixed in r144; please test again and see if it works correctly now.

Original comment by marcus@wanners.net on 7 Jul 2010 at 1:15

GoogleCodeExporter commented 9 years ago

Original comment by marcus@wanners.net on 20 Aug 2010 at 2:00