Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers.
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:

http://jevois.org/tutorials/User120fps.html

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 (22,960 points)
Thanks for the advice. It went well!
Then I made a crawler robot using Jevois.
Please see the following the below.

https://youtu.be/Z0I0FVGLGtw
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.begin(115200);
  HWSERIAL.begin(115200);
  Serial.println("Let's go!");
  delay(8000);
  HWSERIAL.println("setpar serlog None");
  HWSERIAL.println("setpar serout Hard");
  HWSERIAL.println("setmapping2 YUYV 320 240 30.0 JeVois RoadNavigation");
  HWSERIAL.println("streamon");
  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");
}
//-------------------------------------------------------------------------------
...