|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Standalone Bounds Finding Test Tool. More...
#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "../../../inc/tmc51x0.hpp"#include "test_config/esp32_tmc51x0_bus.hpp"#include "test_config/esp32_tmc51x0_test_config.hpp"#include "esp_log.h"#include "esp_timer.h"Typedefs | |
| using | TestConfig = tmc51x0_test_config::GetTestConfigForTestRig<SELECTED_TEST_RIG> |
Enumerations | |
| enum class | TestHomePlacement { AtCenter , AtMin , AtMax , None } |
Functions | |
| void | app_main (void) |
Variables | |
| static const char * | TAG = "BoundsTest" |
| static constexpr tmc51x0_test_config::TestRigType | SELECTED_TEST_RIG |
| static constexpr bool | BOUNDS_SEARCH_POSITIVE_FIRST = true |
| static constexpr bool | OVERRIDE_BOUNDS_SEARCH_SPEED = false |
| static constexpr float | BOUNDS_SEARCH_SPEED_RPM_OVERRIDE = 60.0f |
| static constexpr float | BOUNDS_SEARCH_SPEED_RPM |
| static constexpr bool | OVERRIDE_BOUNDS_SEARCH_ACCEL = false |
| static constexpr float | BOUNDS_SEARCH_ACCEL_REV_S2_OVERRIDE = 15.0f |
| static constexpr float | BOUNDS_SEARCH_ACCEL_REV_S2 |
| static constexpr float | BOUNDS_SEARCH_SPAN_DEG = 400.0f |
| static constexpr float | BOUNDS_BACKOFF_DEG = 0.0f |
| static constexpr uint32_t | BOUNDS_TIMEOUT_MS = 30000 |
| static constexpr bool | OVERRIDE_STALLGUARD_MIN_VELOCITY = false |
| static constexpr float | STALLGUARD_MIN_VELOCITY_RPM_OVERRIDE = 20.0f |
| static constexpr float | STALLGUARD_MIN_VELOCITY_RPM |
| static constexpr bool | OVERRIDE_STALL_DETECTION_CURRENT_FACTOR = false |
| static constexpr float | STALL_DETECTION_CURRENT_FACTOR_OVERRIDE = 0.5f |
| static constexpr float | STALL_DETECTION_CURRENT_FACTOR |
| static constexpr bool | USE_STALLGUARD = true |
| static constexpr TestHomePlacement | HOME_PLACEMENT_MODE = TestHomePlacement::AtCenter |
| static constexpr bool | ENABLE_POST_BOUNDS_OSCILLATION = true |
| static constexpr uint32_t | POST_BOUNDS_OSCILLATION_COUNT = 5 |
| static constexpr float | POST_BOUNDS_OSC_SPEED_RPM = 60.0f |
| static constexpr float | POST_BOUNDS_OSC_ACCEL_REV_S2 = 5.0f |
| static constexpr float | POST_BOUNDS_OSC_EDGE_BACKOFF_DEG = 3.5f |
| static constexpr uint32_t | POST_BOUNDS_OSC_LEG_TIMEOUT_MS = 15000 |
| static constexpr uint32_t | POST_BOUNDS_OSC_POLL_MS = 20 |
| static constexpr uint32_t | POST_BOUNDS_OSC_SETTLE_MS = 200 |
Standalone Bounds Finding Test Tool.
This tool tests the bounds finding functionality by performing a complete bounds finding sequence just like the fatigue test unit does. It:
USAGE:
|
strong |
| void app_main | ( | void | ) |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |