Skip to content

Commit b32d1aa

Browse files
committed
Regenreated stubs
1 parent 6a9e2e7 commit b32d1aa

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

cflib2/_rust.pyi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,37 @@ class Crazyflie:
320320
Returns:
321321
Connected Crazyflie instance
322322
"""
323+
@staticmethod
324+
async def power_off_stm32_domain(
325+
link_context: LinkContext, uri: builtins.str
326+
) -> None:
327+
r"""
328+
Power off the STM32 and deck subsystem
329+
330+
Cuts power to the STM32 and decks while keeping the nRF51 powered.
331+
The Crazyflie can be powered on again using `power_on_stm32_domain()`.
332+
This does not require a full connection.
333+
"""
334+
@staticmethod
335+
async def power_on_stm32_domain(
336+
link_context: LinkContext, uri: builtins.str
337+
) -> None:
338+
r"""
339+
Power on the STM32 and deck subsystem
340+
341+
Powers the STM32 and decks back on after a `power_off_stm32_domain()`.
342+
This does not require a full connection.
343+
"""
344+
@staticmethod
345+
async def power_off_all(link_context: LinkContext, uri: builtins.str) -> None:
346+
r"""
347+
Power off the Crazyflie completely
348+
349+
Powers off the nRF51, STM32, and deck subsystem. Equivalent to
350+
pressing the power button. The Crazyflie cannot be woken up via
351+
radio after this.
352+
This does not require a full connection.
353+
"""
323354
async def disconnect(self) -> None:
324355
r"""
325356
Disconnect from the Crazyflie

0 commit comments

Comments
 (0)