Files
ManGoWalk_STM32/fun/IMU.c

23 lines
346 B
C

#include "IMU.h"
#ifdef TEST
void imu_thread_entry(ULONG thread_input)
{
while (1)
{
// float imu_angle = GetIMUAngle();
float imu_angle = 96.0f; //×÷Ϊ²âÊÔÖµ
current_location.angle = imu_angle;
tx_event_flags_set(&system_events, EVENT_IMU_DATA_READY, TX_OR);
tx_thread_sleep(100);
}
}
#endif