Commit Graph

12206 Commits

Author SHA1 Message Date
Felix Ruess 4ee4d948c3 [modules] digital_cam: doc for DC_SHUTTER_DELAY and DC_POWER_OFF_DELAY 2015-03-07 14:39:08 +01:00
Felix Ruess 0b245c04db [modules] minor ctrl_module_demo cosmetics 2015-03-07 13:53:27 +01:00
Felix Ruess 9d0992220a [conf] bebop: comment file_logger module which has invalid xml 2015-03-06 22:03:42 +01:00
Felix Ruess 8cb19eba41 [bebop] telnet timeout and some pep8 cleanup 2015-03-06 21:49:18 +01:00
Felix Ruess 0f23e39f80 [bebop] ignore some unused result warnings and add to conf_tests 2015-03-06 20:43:11 +01:00
Felix Ruess 0f014a2562 [mcu] move mcu peripheral event functions to common mcu_event 2015-03-05 17:01:34 +01:00
Gautier Hattenberger 9d89856145 [ahrs] add missing is_aligned flag to float_dcm ahrs 2015-03-05 16:59:26 +01:00
Felix Ruess 61d4c7f29e Merge pull request #1128 from paparazzi/linux_sys_time_clock_monotonic
[arch/linux] sys_time: get time from CLOCK_MONOTONIC

Instead of simply adding up the sys_time ticks, seconds, get current time from CLOCK_MONOTONIC and directly set sys_time from that (difference to clock monotonic time at startup).
2015-03-05 16:15:30 +01:00
Felix Ruess 2bc2ae4372 Merge pull request #1122 from paparazzi/single_udp_socket
Single udp socket

Only create one socket for sending and receiving, instead of two where you use one only to send and the other only to receive.
There should be no reason/need to create two separate ones...

Also add udp_socket.[ch] to make it easier to use only the UDP sockets without the UART like mcu_periph/udp interface around it.
Provides the functions:

- udp_socket_create
- udp_socket_send
- udp_socket_recv
- udp_socket_recv_dontwait
2015-03-05 16:12:35 +01:00
Felix Ruess 41fc194695 [GCS] set bat level to UNK/0 at startup
closes #885
2015-03-05 15:04:38 +01:00
Felix Ruess 6581181cc9 create_module: enforce lowercase file and dir and function names
closes #914
2015-03-05 14:41:18 +01:00
Felix Ruess cddd494522 prevent globbing in fix_code_style.sh
so you can easily call it with the recursive option, e.g.
./fix_code_style.sh -r "sw/airborne/subsystems/*.c"
2015-03-05 14:01:07 +01:00
Felix Ruess be6289440e [arch/linux] rename UdpNetwork to UdpSocket 2015-03-04 17:22:27 +01:00
Felix Ruess cd7768792a Merge pull request #1129 from paparazzi/gps_speech
GPS accuracy speech less verbose

Addresses #1046

GPS accuracy is considered ok if better than 10m, very bad if worse than 20m and simply low in between.
Now only if the accuracy falls into a different range than previously reported.
2015-03-04 16:48:24 +01:00
Felix Ruess d94c774811 [gcs] reword GPS accuracy speech and nothing if pacc > 999 2015-03-04 14:52:44 +01:00
Felix Ruess 2d3efdb6ee [arch/linu] udp_socket: possibility to use hostname 2015-03-04 12:10:53 +01:00
Felix Ruess b6c9619ec7 [arch/linux] sys_time: link against librt for glibc < 2.17 2015-03-03 21:52:05 +01:00
Felix Ruess b1493c416c [arch/linux] sys_time: get time from CLOCK_MONOTONIC
Instead of simply adding up the sys_time ticks, seconds, get curent time from CLOCK_MONOTONIC and directly set sys_time from that
(difference to clock monotonic time at startup).
2015-03-03 21:46:13 +01:00
Felix Ruess 2fedf8a46d [ardrone2] rearrange navdata functions, print info if mag freeze detected 2015-03-03 21:42:23 +01:00
Gautier Hattenberger 420420aafa [fix] temporary fix, we need propagate freq for ardrone2 2015-03-03 18:39:32 +01:00
Gautier Hattenberger 253eadfe12 [gcs] handle pacc properly for each A/C 2015-03-03 18:23:58 +01:00
Felix Ruess 31f555ea99 [arch/linux] udp: fix printf format warning 2015-03-03 18:23:56 +01:00
Felix Ruess ccc6f82160 [conf] add udp_socket for nps target 2015-03-03 18:23:56 +01:00
Felix Ruess f75b87f595 [arch/linux] more generic udp_socket 2015-03-03 18:23:56 +01:00
Felix Ruess 2478bd7bea [arch/linux] udp: only create one socket for sending and receiving 2015-03-03 18:23:55 +01:00
Felix Ruess 0fabdd4f44 Merge pull request #1094
linux_video_speedup_without_thread
2015-03-03 18:21:14 +01:00
Gautier Hattenberger 4e378b340b [link] index of single link is called "single"
and speech text is shorter
see #1098
2015-03-03 18:13:57 +01:00
Felix Ruess f1309a0f34 Merge pull request #1117 from paparazzi/linux_sys_time_thread
Since using SIGALRM to call the sys_tick_handler (via setitimer) can cause problems like interrupting some other syscalls
(i.e. read,write, ioctl), setup a separate thread and use timer_fd instead.
That is a Linux-specific set of functions that presents POSIX timers as file descriptors rather than signals.

If the thread runs with a normal priority it can happen that some timer events are missed (and hence sys_time not updated in time).
So added a function to set a higher prio for that thread (needs root rights or properly set up limits for the user).
In some simple tests no events were missed when running with prio 29 via SCHED_FIFO, even if events would be missed,
the sys_tick_handler is called the appropriate number of times (so that the time is correct again after)...

After these changes also fix some bugs discovered in the ardrone navdata reading.
Reading is now done in a separate thread which waits on a condition variable until the navdata_update event loop has copied the buffer.
2015-03-03 18:10:06 +01:00
Felix Ruess 1f49292dce Merge pull request #1126 from paparazzi/rm_ahrs_freq
[conf] remove AHRS_x_FREQUENCY defaults from imu/ahrs makefiles

As the dt is calculated from the actual timestamps by default now, and it doesn't really make that much sense to have global flags for the frequencies, simply remove the defaults....
2015-03-03 18:01:15 +01:00
Gautier Hattenberger f54f875a69 [gcs] tell A/C name before gps accuracy message 2015-03-03 17:48:22 +01:00
Gautier Hattenberger 3f2c26577c Merge pull request #1127 from paparazzi/ahrs_infrared_module
convert AHRS infrared to module

tested and working
2015-03-03 17:43:44 +01:00
Gautier Hattenberger 5f8d5ee5ea [gcs] GPS accuracy speech less verbose (#1046) 2015-03-03 15:40:04 +01:00
Felix Ruess a4da623375 [conf] update infrared airframes 2015-03-03 11:55:47 +01:00
Felix Ruess c74f8821d7 [modules] convert ahrs_infrared to module 2015-03-03 11:55:46 +01:00
Felix Ruess 6afd24427d [conf] remove AHRS_x_FREQUENCY defaults from imu/ahrs makefiles 2015-03-03 11:44:21 +01:00
Felix Ruess eeb340fa07 update changelog 2015-03-02 23:24:36 +01:00
Gautier Hattenberger dae2773262 Merge pull request #1124 from paparazzi/gcs_perodic_probe
[gcs] periodically request AIRCRAFTS
2015-03-02 22:28:05 +01:00
Felix Ruess 7ad8e616a3 [gcs] only request AIRCRAFTS until first answer from server 2015-03-02 18:59:02 +01:00
Felix Ruess 4fa2a80e20 [gcs] periodically request AIRCRAFTS
periodically probe for new AIRCRAFTS until we got at least one...
This should fix #1078
2015-03-02 18:38:54 +01:00
Felix Ruess 01572870cf Merge pull request #1123 from paparazzi/rm_jsbsim
Remove the jsbsim simulator target, as it is a subset of NPS (when using JSBSim as FDM) with less capabilities.
2015-03-02 18:10:31 +01:00
Felix Ruess 0d1c77c819 [generators] only include raw makefile part from modules if target matches 2015-03-02 17:52:28 +01:00
Felix Ruess 1a475f1699 [simulator] remove jsbsim target
as it is a subset of NPS (when using JSBSim as FDM)
2015-03-02 17:30:53 +01:00
Felix Ruess c7c05ebf10 [build] also fix nps build for crrcsim 2015-03-02 17:00:55 +01:00
Felix Ruess e00d5ee294 [ahrs] mlkf: fix align lp_gyro arg 2015-03-02 16:53:32 +01:00
Felix Ruess 8cd8c8c186 [build] also fix nps build for fixedwing 2015-03-02 16:44:07 +01:00
Felix Ruess 9189469316 [build system] also include deps for cpp files 2015-03-02 16:19:46 +01:00
Felix Ruess a4b0e34db7 [build system] use VPATH to specify search path for NPS files
add $(PAPARAZZI_SRC)/sw/simulator to VPATH, so that makes adds that to the search path.
This makes it possible to add NPS sources as nps/foo.c to $(TARGET).srcs,
and the object and dependency files will correctly be put into $(PAPARAZZI_HOME)/var/aircrafts/<ac>/nps/<src file>
So e.g. /home/<user>/paparazzi/var/aircrafts/Quad_LisaM_2/nps/nps/nps_main.o

While here, also generate the .d dependency files during the compilation run instead of a separate run.

fixes #798
2015-03-02 16:14:00 +01:00
Felix Ruess f6e129069a update changelog 2015-03-02 14:39:35 +01:00
Felix Ruess 7c24df2571 [airborne] fix some dox filenames 2015-03-02 12:50:35 +01:00
Felix Ruess b0057528f8 Merge pull request #1095 from paparazzi/logger_modules_refactor
Logger modules refactor
2015-03-02 12:39:43 +01:00