Skip to content

Commit

Permalink
把电机ARR当作控制参数发送给上位机
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyyttxx committed Dec 29, 2017
1 parent 4168cc6 commit ef7e7da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project/p10-ANO/application/data_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void ANO_DT_Data_Exchange(void)
f.send_rcdata = 0;
// void ANO_DT_Send_RCData(u16 thr,u16 yaw,u16 rol,u16 pit,u16 aux1,u16 aux2,u16 aux3,u16 aux4,u16 aux5,u16 aux6);
// ANO_DT_Send_RCData(Rc_Pwm_In[0],Rc_Pwm_In[1],Rc_Pwm_In[2],Rc_Pwm_In[3],Rc_Pwm_In[4],Rc_Pwm_In[5],Rc_Pwm_In[6],Rc_Pwm_In[7],0,0);
ANO_DT_Send_RCData(u16Rcvr_ch3, u16Rcvr_ch4, u16Rcvr_ch1, u16Rcvr_ch2, 5,6,7,8,9,10);
ANO_DT_Send_RCData(u16Rcvr_ch3, u16Rcvr_ch4, u16Rcvr_ch1, u16Rcvr_ch2, motor_pwm_1, motor_pwm_2, motor_pwm_3, motor_pwm_4, 9, 10);
#ifdef debug_
void Usart2_Send(uint8_t *data_to_send, uint32_t length);
Usart2_Send("\r\nhere?,why no?\r\n", sizeof "\r\nhere?,why no?\r\n");
Expand Down
1 change: 1 addition & 0 deletions project/p10-ANO/application/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void my2_ANO_DT_Data_Receive_Anl(void);

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
#define ndebug
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
int i;
Expand Down

0 comments on commit ef7e7da

Please sign in to comment.