pytest_dshot_esc.py 622 B

123456789101112131415161718
  1. # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.esp32
  6. @pytest.mark.esp32s2
  7. @pytest.mark.esp32s3
  8. @pytest.mark.esp32c3
  9. @pytest.mark.generic
  10. def test_dshot_esc_example(dut: Dut) -> None:
  11. dut.expect_exact('example: Create RMT TX channel')
  12. dut.expect_exact('example: Install Dshot ESC encoder')
  13. dut.expect_exact('example: Enable RMT TX channel')
  14. dut.expect_exact('example: Start ESC by sending zero throttle for a while...')
  15. dut.expect_exact('example: Increase throttle, no telemetry')