Re: [Elphel-support] Writing IMU log to usb
Hi, We are writing a script to capture a set of pictures and save them to a usb drive while the camera is on a UAV. We are also trying to get the imu and gps logger to record on the same usb. We are getting the photos captured and transfered properly but the log is not being created.Here is our code //Makes the directory to mount the flash drive to system(mkdir /var/hdd); system(mount /dev/sda1 /var/hdd); system(cd /var/hdd); //Starts imu and gps logger echoLogger Start\n; system( http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1 ); $i = 1; while ($i = 5){ //Captures pictures system(wget http://192.168.0.9:8081/bimg -O /var/hdd/bob/pic$i.jpg); $i += 1; echo Picture Taken $i\n; } //Turns off logger system( http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1cmd=stop ); echo Stop\n; Does it work if you only try to save the log? Best regards, Oleg Dzhimiev Electronics Engineer phone: +1 801 783 x124 Elphel, Inc. ___ Support-list mailing list Support-list@support.elphel.com http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
Re: [Elphel-support] Writing IMU log to usb
Just noticed - there are some errors in the code - you forgot wget when calling logger_launcher.php: old: system( http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1cmd=stop ); new: system(wget http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1cmd=stop ); Oleg ___ Support-list mailing list Support-list@support.elphel.com http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
[Elphel-support] Writing IMU log to usb
We are writing a script to capture a set of pictures and save them to a usb drive while the camera is on a UAV. We are also trying to get the imu and gps logger to record on the same usb. We are getting the photos captured and transfered properly but the log is not being created.Here is our code //Makes the directory to mount the flash drive to system(mkdir /var/hdd); system(mount /dev/sda1 /var/hdd); system(cd /var/hdd); //Starts imu and gps logger echoLogger Start\n; system( http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1 ); $i = 1; while ($i = 5){ //Captures pictures system(wget http://192.168.0.9:8081/bimg -O /var/hdd/bob/pic$i.jpg); $i += 1; echo Picture Taken $i\n; } //Turns off logger system( http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.logindex=1n=100dev=/dev/sda1cmd=stop ); echo Stop\n; using fpcf -imu 1000 I can see that the imu is working and we are getting data for the images logged. Dylan Carlson -- *University Of Minnesota: College of Science and Engineering* *Aerospace Engineering and Mechanics* ___ Support-list mailing list Support-list@support.elphel.com http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com