Remove code related to gyro
This commit is contained in:
parent
3d00015607
commit
a3872b1f38
5 changed files with 12 additions and 218 deletions
|
@ -46,9 +46,6 @@ class PythonicJoyCon(JoyCon):
|
|||
left_sr = property(JoyCon.get_button_left_sr)
|
||||
left_sl = property(JoyCon.get_button_left_sl)
|
||||
|
||||
set_led_on = JoyCon.set_player_lamp_on
|
||||
set_led_flashing = JoyCon.set_player_lamp_flashing
|
||||
set_led = JoyCon.set_player_lamp
|
||||
disconnect = JoyCon.disconnect_device
|
||||
|
||||
@property
|
||||
|
@ -89,54 +86,3 @@ class PythonicJoyCon(JoyCon):
|
|||
)
|
||||
for i in range(3)
|
||||
]
|
||||
|
||||
@property
|
||||
def gyro(self):
|
||||
c = self._ime_yz_coeff
|
||||
return [
|
||||
(
|
||||
self.get_gyro_x(i),
|
||||
self.get_gyro_y(i) * c,
|
||||
self.get_gyro_z(i) * c,
|
||||
)
|
||||
for i in range(3)
|
||||
]
|
||||
|
||||
@property
|
||||
def gyro_in_deg(self):
|
||||
c = 0.06103
|
||||
c2 = c * self._ime_yz_coeff
|
||||
return [
|
||||
(
|
||||
self.get_gyro_x(i) * c,
|
||||
self.get_gyro_y(i) * c2,
|
||||
self.get_gyro_z(i) * c2,
|
||||
)
|
||||
for i in range(3)
|
||||
]
|
||||
|
||||
@property
|
||||
def gyro_in_rad(self):
|
||||
c = 0.0001694 * 3.1415926536
|
||||
c2 = c * self._ime_yz_coeff
|
||||
return [
|
||||
(
|
||||
self.get_gyro_x(i) * c,
|
||||
self.get_gyro_y(i) * c2,
|
||||
self.get_gyro_z(i) * c2,
|
||||
)
|
||||
for i in range(3)
|
||||
]
|
||||
|
||||
@property
|
||||
def gyro_in_rot(self):
|
||||
c = 0.0001694
|
||||
c2 = c * self._ime_yz_coeff
|
||||
return [
|
||||
(
|
||||
self.get_gyro_x(i) * c,
|
||||
self.get_gyro_y(i) * c2,
|
||||
self.get_gyro_z(i) * c2,
|
||||
)
|
||||
for i in range(3)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue