Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuerte: Allow multiple instances of ardrone_autonomy on the same machine #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ARDroneLib/Soft/Lib/ardrone_tool/AT/ardrone_at_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ AT_CODEC_ERROR_CODE host_open( void )

if( !init_ok )
{
COM_CONFIG_SOCKET_AT(&at_socket, VP_COM_CLIENT, AT_PORT, wifi_ardrone_ip);
COM_CONFIG_SOCKET_AT(&at_socket, VP_COM_CLIENT, 0, wifi_ardrone_ip);
at_socket.protocol = VP_COM_UDP;
at_socket.remotePort = AT_PORT;

if(VP_FAILED(vp_com_init(COM_AT())))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ C_RESULT ardrone_navdata_client_init(void)
{
C_RESULT res;

COM_CONFIG_SOCKET_NAVDATA(&navdata_socket, VP_COM_CLIENT, NAVDATA_PORT, wifi_ardrone_ip);
COM_CONFIG_SOCKET_NAVDATA(&navdata_socket, VP_COM_CLIENT, 0, wifi_ardrone_ip);
navdata_socket.protocol = VP_COM_UDP;
navdata_socket.is_multicast = 0; // disable multicast for Navdata
navdata_socket.multicast_base_addr = MULTICAST_BASE_ADDR;
navdata_socket.remotePort = NAVDATA_PORT;

vp_os_mutex_init(&navdata_client_mutex);
vp_os_cond_init(&navdata_client_condition, &navdata_client_mutex);
Expand Down
3 changes: 2 additions & 1 deletion ARDroneLib/Soft/Lib/ardrone_tool/Video/video_stage.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ DEFINE_THREAD_ROUTINE(video_stage, data) {
icc_udp.com = COM_VIDEO();
icc_udp.buffer_size = (1024*1024);
icc_udp.protocol = VP_COM_UDP;
COM_CONFIG_SOCKET_VIDEO(&icc_udp.socket, VP_COM_CLIENT, VIDEO_PORT, wifi_ardrone_ip);
COM_CONFIG_SOCKET_VIDEO(&icc_udp.socket, VP_COM_CLIENT, 0, wifi_ardrone_ip);
icc_udp.socket.remotePort = VIDEO_PORT;

icc.nb_sockets = 2;
icc.configs = icc_tab;
Expand Down