[PROSV5] Vision Sensor Wifi Mode Setup Doesn't Work

Hi everyone,

I’ve been trying to use the vision sensor for a while, but it keeps giving me an error whenever I build my project (I’m using the C API). Here’s my terminal output:

robotics@Sandra:~/Test_V5$ prosv5 make
Adding timestamp [OK]
Linking project with libpros,okapilib [ERRORS]
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: bin/initialize.c.o: in function `initialize':
initialize.c:(.text.initialize+0x8): undefined reference to `vision_set_wifi_mode'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: bin/opcontrol.c.o: in function `opcontrol':
opcontrol.c:(.text.opcontrol+0x1bc): undefined reference to `vision_set_wifi_mode'
collect2: error: ld returned 1 exit status
Error: Failed to build
make: *** [Makefile:78: bin/output.elf] Error 1

Any thoughts? I’m using a Xubuntu VM on a Dell laptop with Windows 10 as the host OS.

What version of the PROS kernel are you using (


prosv5 conduct info-project

)? We added support for controlling the WiFi mode in 3.1.5.

That’s odd, I can’t find 3.1.5. The latest I see on GitHub is 3.1.3. It also tells me that my CLI is up to date, even thought it says that its on version 3.1.3.

What’s the output of


prosv5 conduct info-project

?

Here ya go!

robotics@Sandra:~/Test_V5$ prosv5 conduct info-project
PROS Project for v5 at: /home/robotics/Test_V5 (Test_V5)
Name      Version    Origin
--------  ---------  -------------
kernel    3.1.3      pros-mainline
okapilib  3.3.5      pros-mainline
robotics@Sandra:~/Test_V5$ 

CLI version and kernel version are different. The latest CLI version is 3.1.3, while the latest kernel version is 3.1.5.

You can run


prosv5 conduct upgrade

(or


prosv5 c u

) in the root of your project to upgrade it to the latest version.

Ah, okay, thank you. It works now :slight_smile: