generated from Template/H563ZI-HAL-CMake-Template
Add ble,gps,imu and others in threadx,need test
This commit is contained in:
20
fun/IMU.c
20
fun/IMU.c
@@ -1,2 +1,22 @@
|
||||
#include "IMU.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef TEST
|
||||
|
||||
void imu_thread_entry(ULONG thread_input)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
// float imu_angle = GetIMUAngle();
|
||||
float imu_angle = 96.0f; //<2F><>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>ֵ
|
||||
current_location.angle = imu_angle;
|
||||
tx_event_flags_set(&system_events, EVENT_IMU_DATA_READY, TX_OR);
|
||||
tx_thread_sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user