|
56 | 56 | NDOF_FMC_OFF_MODE = const(0x0B) |
57 | 57 | NDOF_MODE = const(0x0C) |
58 | 58 |
|
59 | | -ACCEL_2G = const(0x00) # For accel_range property |
60 | | -ACCEL_4G = const(0x01) # Default |
| 59 | +ACCEL_2G = const(0x00) # For accel_range property |
| 60 | +ACCEL_4G = const(0x01) # Default |
61 | 61 | ACCEL_8G = const(0x02) |
62 | 62 | ACCEL_16G = const(0x03) |
63 | | -ACCEL_7_81HZ = const(0x00) # For accel_bandwidth property |
| 63 | +ACCEL_7_81HZ = const(0x00) # For accel_bandwidth property |
64 | 64 | ACCEL_15_63HZ = const(0x04) |
65 | 65 | ACCEL_31_25HZ = const(0x08) |
66 | | -ACCEL_62_5HZ = const(0x0C) # Default |
| 66 | +ACCEL_62_5HZ = const(0x0C) # Default |
67 | 67 | ACCEL_125HZ = const(0x10) |
68 | 68 | ACCEL_250HZ = const(0x14) |
69 | 69 | ACCEL_500HZ = const(0x18) |
70 | 70 | ACCEL_1000HZ = const(0x1C) |
71 | | -ACCEL_NORMAL_MODE = const(0x00) # Default. For accel_mode property |
| 71 | +ACCEL_NORMAL_MODE = const(0x00) # Default. For accel_mode property |
72 | 72 | ACCEL_SUSPEND_MODE = const(0x20) |
73 | 73 | ACCEL_LOWPOWER1_MODE = const(0x40) |
74 | 74 | ACCEL_STANDBY_MODE = const(0x60) |
75 | 75 | ACCEL_LOWPOWER2_MODE = const(0x80) |
76 | 76 | ACCEL_DEEPSUSPEND_MODE = const(0xA0) |
77 | 77 |
|
78 | | -GYRO_2000_DPS = const(0x00) # Default. For gyro_range property |
| 78 | +GYRO_2000_DPS = const(0x00) # Default. For gyro_range property |
79 | 79 | GYRO_1000_DPS = const(0x01) |
80 | 80 | GYRO_500_DPS = const(0x02) |
81 | 81 | GYRO_250_DPS = const(0x03) |
82 | 82 | GYRO_125_DPS = const(0x04) |
83 | | -GYRO_523HZ = const(0x00) # For gyro_bandwidth property |
| 83 | +GYRO_523HZ = const(0x00) # For gyro_bandwidth property |
84 | 84 | GYRO_230HZ = const(0x08) |
85 | 85 | GYRO_116HZ = const(0x10) |
86 | 86 | GYRO_47HZ = const(0x18) |
87 | 87 | GYRO_23HZ = const(0x20) |
88 | 88 | GYRO_12HZ = const(0x28) |
89 | 89 | GYRO_64HZ = const(0x30) |
90 | | -GYRO_32HZ = const(0x38) # Default |
91 | | -GYRO_NORMAL_MODE = const(0x00) # Default. For gyro_mode property |
| 90 | +GYRO_32HZ = const(0x38) # Default |
| 91 | +GYRO_NORMAL_MODE = const(0x00) # Default. For gyro_mode property |
92 | 92 | GYRO_FASTPOWERUP_MODE = const(0x01) |
93 | 93 | GYRO_DEEPSUSPEND_MODE = const(0x02) |
94 | 94 | GYRO_SUSPEND_MODE = const(0x03) |
95 | 95 | GYRO_ADVANCEDPOWERSAVE_MODE = const(0x04) |
96 | 96 |
|
97 | | -MAGNET_2HZ = const(0x00) # For magnet_rate property |
| 97 | +MAGNET_2HZ = const(0x00) # For magnet_rate property |
98 | 98 | MAGNET_6HZ = const(0x01) |
99 | 99 | MAGNET_8HZ = const(0x02) |
100 | 100 | MAGNET_10HZ = const(0x03) |
101 | 101 | MAGNET_15HZ = const(0x04) |
102 | | -MAGNET_20HZ = const(0x05) # Default |
| 102 | +MAGNET_20HZ = const(0x05) # Default |
103 | 103 | MAGNET_25HZ = const(0x06) |
104 | 104 | MAGNET_30HZ = const(0x07) |
105 | | -MAGNET_LOWPOWER_MODE = const(0x00) # For magnet_operation_mode property |
106 | | -MAGNET_REGULAR_MODE = const(0x08) # Default |
| 105 | +MAGNET_LOWPOWER_MODE = const(0x00) # For magnet_operation_mode property |
| 106 | +MAGNET_REGULAR_MODE = const(0x08) # Default |
107 | 107 | MAGNET_ENHANCEDREGULAR_MODE = const(0x10) |
108 | 108 | MAGNET_ACCURACY_MODE = const(0x18) |
109 | | -MAGNET_NORMAL_MODE = const(0x00) # for magnet_power_mode property |
| 109 | +MAGNET_NORMAL_MODE = const(0x00) # for magnet_power_mode property |
110 | 110 | MAGNET_SLEEP_MODE = const(0x20) |
111 | 111 | MAGNET_SUSPEND_MODE = const(0x40) |
112 | | -MAGNET_FORCEMODE_MODE = const(0x60) # Default |
| 112 | +MAGNET_FORCEMODE_MODE = const(0x60) # Default |
113 | 113 |
|
114 | 114 | _POWER_NORMAL = const(0x00) |
115 | 115 | _POWER_LOW = const(0x01) |
@@ -172,7 +172,7 @@ def __set__(self, obj, value): |
172 | 172 | obj.mode = last_mode |
173 | 173 |
|
174 | 174 |
|
175 | | -class BNO055: |
| 175 | +class BNO055: # pylint: disable=too-many-public-methods |
176 | 176 | """ |
177 | 177 | Base class for the BNO055 9DOF IMU sensor. |
178 | 178 | """ |
|
0 commit comments