2026-05-10 21:35:40 +08:00
|
|
|
|
#ifndef __DEHY_TEST_H__
|
|
|
|
|
|
#define __DEHY_TEST_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdint.h"
|
|
|
|
|
|
|
2026-05-11 10:04:56 +08:00
|
|
|
|
typedef enum
|
|
|
|
|
|
{
|
|
|
|
|
|
LOGIC_INIT = 0x5AA5,
|
2026-05-12 13:57:29 +08:00
|
|
|
|
LOGIC_RUN = 0x1111
|
|
|
|
|
|
// LOGIC_CLOSE = 0x2222
|
2026-05-11 10:04:56 +08:00
|
|
|
|
}LOGIC_STATE_ENUM_T;
|
|
|
|
|
|
|
|
|
|
|
|
void dehy_speed_up(LOGIC_STATE_ENUM_T init_cmd, uint16_t acc_val, uint16_t current_speed, uint16_t target_speed);
|
2026-05-10 21:35:40 +08:00
|
|
|
|
|
2026-05-12 13:57:29 +08:00
|
|
|
|
/*************************************************************************************
|
|
|
|
|
|
* @brief 超震速度限制逻辑
|
|
|
|
|
|
* @return uint16_t 超震限制的速度
|
|
|
|
|
|
*
|
|
|
|
|
|
* @warning
|
|
|
|
|
|
* @note
|
|
|
|
|
|
*************************************************************************************/
|
|
|
|
|
|
uint16_t supershake_speed_limit(LOGIC_STATE_ENUM_T cmd);
|
2026-05-10 21:35:40 +08:00
|
|
|
|
|
|
|
|
|
|
#endif
|