paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Problem saving file from paparazzi simulator.


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] Problem saving file from paparazzi simulator.
Date: Wed, 30 Apr 2014 09:41:36 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Hi,

Open your file in mode "a", not "w", so it doesn't erase the content at each call of fopen.
http://www.cplusplus.com/reference/cstdio/fopen/

Gautier

Le 30/04/2014 09:17, thomas mogensen a écrit :
Hey, sorry to bother. 

I'm currently working on a project using Paparazzi. I'm modifying the source for the fixedwing aircraft and using the build in simulator(sim) to test it. 

My problem is that I would like to find out how much my changes are degrading performance, so I'm trying to save data to a file from within the handle_periodic_tasks_ap function in main_ap.c, but somehow the file doesn't get saved to my harddrive. This is the test code I used to save the file http://pastebin.com/bD33gg5X


I hope you guys can tell me what I'm doing wrong.

Kind regards,
Thomas Birch Mogensen


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]