[Elphel-support] Writing IMU log to usb

Oleg support-list at support.elphel.com
Fri Apr 26 10:35:49 PDT 2013


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
> echo"Logger Start\n";
> system("
> http://192.168.0.9/logger_launcher.php?file=/var/hdd/test1.log&index=1&n=1000000&dev=/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.log&index=1&n=1000000&dev=/dev/sda1&cmd=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 5555 x124
Elphel, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20130426/180aab7d/attachment-0002.html>


More information about the Support-list mailing list