Commit Graph

12187 Commits

Author SHA1 Message Date
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 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 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 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
Felix Ruess 45368a7479 [conf] openlog module for microjet 2015-03-02 11:58:50 +01:00
Felix Ruess 8a3b634bfe [modules] keep openlog.xml module name for now 2015-03-02 11:57:08 +01:00
Felix Ruess 2dd069e80a Merge pull request #856 from paparazzi/ahrs_refactor
AHRS API/Interface refactor

- each AHRS implementation has it's own function names, to basically make it possible to run multiple at the same time
- input data passed as pointer arguments
- wrappers that subscribe to ABI messages (gyro, accel, mag) which call the actual implementation
  - makes it easier to run the actual algorithm e.g. for testing without ABI
- body_to_imu quaternion is also set via ABI
- IMU measurements are published via ABI from the gyro/accel/mag callbacks from main for now
- each ahrs implementation has an `is_aligned` bool for now...
- MLKF: function to only update heading from mag (default now, define AHRS_MAG_UPDATE_ALL_AXES to update all axes as previously)
    
Merging now as it is already useful.
Still TODO:
- publish GPS via ABI as well (and get rid of global ahrs_update_gps)
- update all IMU implementations to publish ABI messages directly
- pimp or get rid of ahrs_register_impl (to actually handle multiple AHRS at the same time)
2015-03-01 22:07:23 +01:00
Felix Ruess e7f2c979d0 [arch/linux] udp: correct some doxygen comments 2015-03-01 18:44:47 +01:00
Felix Ruess 669463900b [tmtc] remove duplicate udp_port option from link 2015-03-01 14:18:05 +01:00
Gautier Hattenberger f6937434cb [flight_plan] add ; when using the 'call' statement without loop 2015-02-28 23:47:51 +01:00
Felix Ruess 8634b728ae [rotorcraft] fix attitude_set_rpy_setpoint
use quat_of_eulers instead of quat_from_rpy_cmd to match what users expect from attitude_set_rpy_setpoint
2015-02-27 15:00:37 +01:00
Felix Ruess 3375555e34 [ardrone] wait on condition variable in navdata_read
also no need to have buffer exposed in the header...
2015-02-27 14:49:52 +01:00
Felix Ruess a0afeb5d50 [ardrone] rewrite navdata_read 2015-02-27 13:39:30 +01:00
Freek van Tienen 4d7389c51d [viewvideo] Fix some small netcat bugs 2015-02-26 16:08:04 +01:00
Freek van Tienen 6c124f34a7 [viewvideo] Update netcat jpeg transfers 2015-02-26 11:50:42 +01:00
Freek van Tienen 9ed9c510fd Update changelog 2015-02-26 11:03:12 +01:00
Freek van Tienen 83e243c1f0 [video/usb_logger] Use new viewvideo functions 2015-02-26 10:47:23 +01:00
Freek van Tienen 20c0c6603f [viewvideo] Move netcat image send inside viewvideo module 2015-02-26 10:35:16 +01:00
Freek van Tienen bc7feb57b8 Merge branch 'linux_sys_time_thread' of github.com:paparazzi/paparazzi into linux_video_speedup_without_thread 2015-02-25 18:43:08 +01:00
Freek van Tienen be3696ead8 [bebop] Add video CMOS configuration. 2015-02-25 18:40:38 +01:00
Freek van Tienen 208d224b6c [computer_vision] Rewrite viewvideo and rename/cleanup JPEG and RTP functions. 2015-02-25 18:40:38 +01:00
Freek van Tienen cda619f72c [v4l2] Fix small bug in fetching image 2015-02-25 18:40:38 +01:00
Freek van Tienen 3f7a0366de [v4l2] Rename v4l2 and fix mutex lock.
This implementation of v4l2 has more chance on a lock then the previous, but requires a lot let mutexes.
2015-02-25 18:40:38 +01:00