generated from Template/H563ZI-HAL-CMake-Template
imu and gps allright
This commit is contained in:
@@ -33,7 +33,7 @@ uint8_t rx_data; //
|
||||
uint8_t uart_dma_rx_buf[UART_DMA_RX_BUF_SIZE];
|
||||
RingBuffer ble_rx_ring = {0}; //<2F><>ʼ<EFBFBD><CABC>
|
||||
MotorCommand cmd;
|
||||
LocationData current_location = {0};
|
||||
BleMessage current_location = {0};
|
||||
float imu_angle = 0.0f;
|
||||
|
||||
TX_EVENT_FLAGS_GROUP ble_event_flags;
|
||||
@@ -200,8 +200,10 @@ void ble_tx_task_entry(ULONG thread_input) {
|
||||
if(tx_queue_receive(&ble_tx_queue,&msg,TX_WAIT_FOREVER) == TX_SUCCESS)
|
||||
{
|
||||
HCBle_SendData("#{\"lat\":%.6f,\"lon\":%.6f,\"angle\":%.1f}\n",
|
||||
msg.lat, msg.lon,0);
|
||||
msg.lat, msg.lon,msg.angle);
|
||||
|
||||
}
|
||||
tx_thread_sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user