Dear Sir or Madam,
I modified the software to realize a simple function and the project build 
successfully.I want the board to send data by all the sensors and if the board 
receives the data then light the LED. But it seems the robot does not work as 
expected.What should I do?Here is the mian function:


#include <p30f6014a.h>
#include <stdio.h>
#include <string.h>
#include <math.h>


#include <e_uart_char.h>
#include <e_init_port.h>
#include <e_led.h>
#include <e_randb.h>
#include <e_agenda.h>
#include <e_prox.h>


#include <btcom.h>


#define M_PI 3.141593
int main() 
{
//初始化
e_init_port();
e_init_uart1();
e_init_randb(UART);
e_randb_set_uart_communication(1);


//设置通信距离
e_randb_uart_set_range(0);


//在板子上进行计算
e_randb_uart_set_calculation(ON_BOARD);


//保存光照条件
e_randb_uart_store_light_conditions();


finalDataRegister data;
while(1)
{
e_randb_uart_send_all_data(100);
if (e_randb_get_data_uart(&data))
e_set_led(0,1);
}
return 0;
}

_______________________________________________
E-puck-user mailing list
E-puck-user@gna.org
https://mail.gna.org/listinfo/e-puck-user

Reply via email to