You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
1.0 KiB

#ifndef _DJ_H_
#define _DJ_H_
#include "hic.h"
#include "basic_type.h"
#include "io_config.h"
#include "uart.h"
#include "lcd.h"
#include "led.h"
#include "t21_t8.h"
void motor_uart_config(void);
void send_cmd_to_motor(volatile char buff[20],unsigned int num);
void recv_from_motor_data(unsigned char data);
void data_from_motor_recv_Ok(void);
void motor_data_analyse(volatile char buff[20], unsigned int num);
int32_t motor_jerk_status(void);
int32_t judge_foreward_or_reversal(int32_t speed,int32_t turn_state);
void set_motor_off(void);
int32_t set_moter_speed_internal(int32_t speed_dsp);
void set_motor_speed(int32_t speed_dsp_target);
void inquire_motor_error_state(void);
/*
void read_motor_model(void);
void motor_speed_control_Cmd(int motor_speed,int motor_id);
void read_motor_at_present_speed(void);
int set_motor_foreward(void);
int set_motor_reversal(void);
void judge_motor_speed(int32_t speed);
void reversal_off_cmd(int32_t speed);
//===================================================
*/
#endif