Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Can you show me the"setmapping2" example

0 votes
Can you show me the"setmapping2" example.
I want to play "no-USB-out video mapping" with arduino.
And tell me how to use the "runscript" ,I don't kow where "*.cfg" save folders.
asked May 1, 2017 in User questions by motomi (300 points)

1 Answer

+1 vote

Check out this tutorial that uses setmapping2:


For runscript, if the script name you provide is relative (does not start with /) then it should be in the directory of the current module. For example runscript myscript.cfg will look for JEVOIS:/modules/JeVois/SomeModule/myscript.cfg if SomeModule is the currently running module.

Or you can provide an absolute path, like

/jevois/mycript.cfg and then save the script in JEVOIS:/myscript.cfg

answered May 4, 2017 by JeVois (46,580 points)
Thanks for the advice. It went well!
Then I made a crawler robot using Jevois.
Please see the following the below.

Looks amazing! Great robot! Maybe you can write a tutorial on how you made it some day.
Thank you!
I sent Serial to Arduino(teensy3.6) using setmapping2. The program code is here.

void setup() {
  Serial.println("Let's go!");
  HWSERIAL.println("setpar serlog None");
  HWSERIAL.println("setpar serout Hard");
  HWSERIAL.println("setmapping2 YUYV 320 240 30.0 JeVois RoadNavigation");
  HWSERIAL.println("setcam brightness 2");
  HWSERIAL.println("setcam contrast 5");
  HWSERIAL.println("setcam gain 400");
  HWSERIAL.println("setcam redbal 180");
  HWSERIAL.println("setcam bluebal 180");
  HWSERIAL.println("runscript params.cfg");