From c9132b45db09834afccbe68561d84fa0123a5c4b Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sat, 10 Apr 2021 16:12:34 +0200 Subject: [PATCH] v3: Drop IMU documentation. This is not officially supported yet, so drop from release docs. --- doc/api/hubs/movehub.rst | 20 --------------- doc/api/hubs/technichub.rst | 51 +------------------------------------ 2 files changed, 1 insertion(+), 70 deletions(-) diff --git a/doc/api/hubs/movehub.rst b/doc/api/hubs/movehub.rst index 31865e4..2283cce 100644 --- a/doc/api/hubs/movehub.rst +++ b/doc/api/hubs/movehub.rst @@ -19,12 +19,6 @@ Move Hub .. automethod:: pybricks.hubs::MoveHub.light.animate - .. rubric:: Using the IMU - - .. automethod:: pybricks.hubs::MoveHub.imu.up - - .. automethod:: pybricks.hubs::MoveHub.imu.acceleration - .. rubric:: Using the battery .. automethod:: pybricks.hubs::MoveHub.battery.voltage @@ -46,17 +40,3 @@ Making the light blink .. literalinclude:: ../../../examples/pup/hub_movehub/light_blink.py -IMU examples ---------------- - -Testing which way is up -******************************** - -.. literalinclude:: - ../../../examples/pup/hub_movehub/imu_up.py - -Reading acceleration -************************************************** - -.. literalinclude:: - ../../../examples/pup/hub_movehub/imu_read_acceleration.py diff --git a/doc/api/hubs/technichub.rst b/doc/api/hubs/technichub.rst index 22d0383..da3d55e 100644 --- a/doc/api/hubs/technichub.rst +++ b/doc/api/hubs/technichub.rst @@ -4,8 +4,7 @@ Technic Hub .. figure:: ../../api/images/technichub.png :height: 15 em -.. autoclass:: pybricks.hubs.TechnicHub - :no-members: +.. class:: TechnicHub .. rubric:: Using the hub status light @@ -17,20 +16,6 @@ Technic Hub .. automethod:: pybricks.hubs::TechnicHub.light.animate - .. rubric:: Using the IMU - - .. automethod:: pybricks.hubs::TechnicHub.imu.up - - .. automethod:: pybricks.hubs::TechnicHub.imu.tilt - - .. automethod:: pybricks.hubs::TechnicHub.imu.acceleration - - .. automethod:: pybricks.hubs::TechnicHub.imu.angular_velocity - - .. automethod:: pybricks.hubs::TechnicHub.imu.heading - - .. automethod:: pybricks.hubs::TechnicHub.imu.reset_heading - .. rubric:: Using the battery .. automethod:: pybricks.hubs::TechnicHub.battery.voltage @@ -63,37 +48,3 @@ Creating light animations .. literalinclude:: ../../../examples/pup/hub_technichub/light_animate.py - -IMU examples ---------------- - -Testing which way is up -******************************** - -.. literalinclude:: - ../../../examples/pup/hub_technichub/imu_up.py - - -Reading the tilt value -******************************** - -.. literalinclude:: - ../../../examples/pup/hub_technichub/imu_tilt.py - -Using a custom hub orientation -************************************************** - -.. literalinclude:: - ../../../examples/pup/hub_technichub/imu_tilt_blast.py - -Reading acceleration and angular velocity vectors -************************************************** - -.. literalinclude:: - ../../../examples/pup/hub_technichub/imu_read_vector.py - -Reading acceleration and angular velocity on one axis -***************************************************** - -.. literalinclude:: - ../../../examples/pup/hub_technichub/imu_read_scalar.py