Skip to content

Commit c64e996

Browse files
authored
Update data.c
1 parent 614ccb6 commit c64e996

File tree

1 file changed

+6
-6
lines changed
  • arc_design_contest/2018/XDU_Master-Sign-Language/arc/driver/data

1 file changed

+6
-6
lines changed

arc_design_contest/2018/XDU_Master-Sign-Language/arc/driver/data/data.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ double aValue[3];
2727
double wValue[3];
2828
double AValue[3];
2929
int adc[4];
30-
//*************************************处理姿态传感器数据*************************************************
30+
//*************************************Processing attitude sensor data*************************************************
3131
void mpu6050_isr(unsigned char ucstra[6] ,unsigned char ucStrw[6],unsigned char ucStrAngle[6],uint8_t Re_buf[33])
3232
{
33-
if(Re_buf[0]!=0x55) return; //第0号数据不是帧头
34-
//重新赋值,准备下一帧数据的接收
33+
if(Re_buf[0]!=0x55) return; //No. 0 data is not a frame header
34+
3535
switch(Re_buf [1])
3636
{
3737
case 0x51:
@@ -73,7 +73,7 @@ void mpu6050_isr(unsigned char ucstra[6] ,unsigned char ucStrw[6],unsigned char
7373
//*********************************
7474
void data( int adc[4],double aValue[3],double wValue[3],double AValue[3])
7575
{
76-
//****************************采集弯曲传感器数据****************************************
76+
//****************************Collecting bending sensor data****************************************
7777
dev_iicAD = iic_get_dev(DW_IIC_1_ID );
7878
dev_iicAD->iic_open(DEV_MASTER_MODE, IIC_SPEED_STANDARD);
7979
dev_iicAD->iic_control(IIC_CMD_MST_SET_TAR_ADDR, CONV2VOID(I2C_SLAVE_ADDRAD));
@@ -96,7 +96,7 @@ void data( int adc[4],double aValue[3],double wValue[3],double AValue[3])
9696
adc[0], adc[1], adc[2], adc[3]);
9797
//**************************************************************************************************
9898

99-
//***************************************采集姿态传感器数据*****************************************
99+
//***************************************Collecting attitude sensor data*****************************************
100100
dev_uart0->uart_control(UART_CMD_GET_RXAVAIL, (void *)(&rd_avail));
101101
if(rd_avail > 0)
102102
{
@@ -123,4 +123,4 @@ void data( int adc[4],double aValue[3],double wValue[3],double AValue[3])
123123
//**************************************************************************************************
124124
}
125125

126-
126+

0 commit comments

Comments
 (0)