Mark Charlebois
872a26e6da
Fixed passed ot open() for O_CREAT
...
In nuttx the mode parameter to open is not required but in Linux,
and per the POSIX spec, mode is required if the O_CREAT flag is
passed.
The mode flags are different for NuttX and Linux so a new set of
PX4 defines was added:
PX4_O_MODE_777 - read, write, execute for user, group and other
PX4_O_MODE_666 - read, and write for user, group and other
PX4_O_MODE_600 - read, and write for user
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-14 11:26:40 +02:00
Mark Charlebois
c6b36073fe
POSIX: ifdef getreg32() calls in mcu_unique_id()
...
mcu_unique_id() reads registers at an invalid address in non-nuttx builds.
Added ifdef to return a dummy value for non-nuttx builds.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-14 11:26:27 +02:00
Lorenz Meier
dc7471f430
Merge pull request #2296 from PX4/attitude_loop_speed
...
Attitude loop speed
2015-06-14 10:46:09 +02:00
Lorenz Meier
b6d9a97aaa
Merge pull request #2349 from PX4/auto_takeoff_fix
...
FW: Auto takeoff fix
2015-06-14 10:45:10 +02:00
Lorenz Meier
484be77b05
Merge pull request #2354 from PX4/rtl_fix
...
RTL fix
2015-06-14 10:34:50 +02:00
Mark Charlebois
7e7513bc15
POSIX: change pthreads to px4_tasks in simulator
...
The simulator was using pthread APIs directly so calls to px4_getpid()
would fail since the task ID was not known. Changed simulator to use
px4_task_spawn_cmd.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-13 16:44:29 -07:00
TSC21
dccd4df7bc
mocap_support: added support for mocap data on firmware
2015-06-13 17:03:31 +01:00
Lorenz Meier
5e4ce5cf59
Add missing errno header
2015-06-13 16:36:00 +02:00
Mark Charlebois
e6d9aa2b43
mavlink fix for cause of intermittent crash
...
If the posix target is run and the rootfs is not created, then
there is an fopen in mavlink without a return value check and then a write
to the fd. When this condition occurs it tries to write to NULL and will
segfault.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-13 07:21:45 -07:00
Lorenz Meier
1522255c29
MAVLink app: Fix argument handling to work on all operating systems
2015-06-13 06:53:02 -07:00
Lorenz Meier
cae30bd614
Merge pull request #2348 from PX4/hil_device_sim
...
Add more functionality to HIL driver
2015-06-13 14:29:27 +02:00
Lorenz Meier
849bd4c3f7
POSIX HRT: Use correct define, formatting fixes
2015-06-13 11:43:31 +02:00
Lorenz Meier
9d0d6ba2bf
EKF: Fix isfinite calls
2015-06-13 11:31:55 +02:00
Lorenz Meier
b06a533555
OS X porting: Make unit tests compile on OS X
2015-06-13 11:07:17 +02:00
Lorenz Meier
c9fefe236b
Merged release into master
2015-06-13 11:06:01 +02:00
Lorenz Meier
f9f34078d1
commander: Ensure RTL can be triggered in all modes
2015-06-13 00:16:25 +02:00
Lorenz Meier
2fc069bd63
Merge pull request #2350 from PX4/master_versioning_fix
...
Back Port of Git Versioning - without side effects
2015-06-13 00:07:19 +02:00
Elikos default
a0176474c7
fix NaN yaw breaking attitude setpoints when going back into posctl from offboard
2015-06-13 00:02:17 +02:00
Lorenz Meier
3b0d766fd8
Merge pull request #2353 from andre-nguyen/offb_NaN_fix
...
fix NaN yaw breaking attitude setpoints when going back into posctl from offboard
2015-06-13 00:01:24 +02:00
David Sidrane
9585bb4a3c
Missing slash
2015-06-12 07:54:51 -10:00
David Sidrane
428611119f
Merged GIT version changes
2015-06-12 19:32:55 +02:00
David Sidrane
5acc4ee43b
Back Port of Git Versioning - without side effects Part 2
2015-06-12 06:54:04 -10:00
David Sidrane
17fddb1556
Back Port of Git Versioning - without side effects Part 1
2015-06-12 06:49:15 -10:00
Lorenz Meier
55ed9e9612
ECL: Run TECS filter faster, adjust gains accordingly
2015-06-12 16:10:20 +02:00
Lorenz Meier
8838b18da7
FW attitude control: Run attitude controller as fast as we can to minimize latency
2015-06-12 16:10:20 +02:00
Lorenz Meier
3f77455dd8
commander: Condition HIL arming check properly
2015-06-12 15:58:21 +02:00
Lorenz Meier
92aeef2b84
commander: Better text feedback
2015-06-12 15:57:57 +02:00
Lorenz Meier
05993bee6f
Navigator: Provide better feedback if no mission present, enforce minimum altitude in loiter and in auto modes
2015-06-12 15:57:27 +02:00
Lorenz Meier
6c0539c243
FW position controller: Do handle idle mission items correctly
2015-06-12 15:55:55 +02:00
Lorenz Meier
bca13e3e1b
Merge pull request #2343 from PX4/mc_thrust_fix
...
Update MC thrust limit default param value and add explanation
2015-06-12 15:09:36 +02:00
Lorenz Meier
540ffa7861
Let user know we are loitering now
2015-06-12 14:02:47 +02:00
tumbili
7e44a23411
fix: take current trim values into account when doing trim calibration
2015-06-12 13:59:25 +02:00
Lorenz Meier
94313323aa
MAVLink app: Fix sending of autopilot capabilities
2015-06-12 13:53:20 +02:00
Lorenz Meier
085a69383a
Merged master
2015-06-12 13:40:47 +02:00
Lorenz Meier
0bfc727584
Add more functionality to HIL driver
2015-06-12 13:30:44 +02:00
Lorenz Meier
e7765d77f6
Merge pull request #2330 from PX4/abs_alt
...
Navigator: Make logic using previous and current altitudes consistent
2015-06-12 13:07:06 +02:00
Lorenz Meier
267fb408b1
Update MC thrust limit default param value and add explanation
2015-06-12 11:08:30 +02:00
James Goppert
dedd16e36e
Modified velocity saturation to maintain direction.
2015-06-12 10:58:33 +02:00
James Goppert
adbccfaa1c
Saturate velocity command for mc_pos_control.
2015-06-12 10:58:20 +02:00
Lorenz Meier
863a6e8811
HIL driver: Fix boot order race
2015-06-12 09:27:50 +02:00
Lorenz Meier
3f4b5fcb72
HIL driver: Fix boot order race
2015-06-12 09:27:15 +02:00
Andreas Antener
315683124d
fix posctl th param meta
2015-06-12 08:47:46 +02:00
Lorenz Meier
7374aff3aa
Merge pull request #2334 from PX4/master_mavlink_null_fix
...
Backport of Fixes mavlink_if0: invalid data rate '(null)' bug
2015-06-12 08:36:25 +02:00
Mark Charlebois
4d1ae6269b
POSIX: Added PX4_ROOTFSDIR to file paths
...
Set a default path relative to current dir for the posix target.
Running make posixrun will create the required directoroes and then run
mainapp from its build location.
PX4_ROOTFSDIR is set to nothing for nuttx.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 21:36:13 -07:00
Mark Charlebois
fb402bc096
POSIX: Fixed remaining broke gtests
...
The addition of the hrt workqueue required adding some additional files to
unittests/CMakeLists.txt
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 20:22:49 -07:00
Mark Charlebois
ea7d5070c5
POSIX: Fixed some of the failing gtests
...
The orb_advert_t change from int to void * required some fixups
for the gtests.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 19:42:54 -07:00
Mark Charlebois
527b97e8b4
POSIX: added tone_alarm simulator
...
The tone_alarm simulator was added to rc.S and the warning output for a
hrt_timer with a 0 expiry times was disabled.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 19:00:49 -07:00
David Sidrane
28d3729acd
Backport of Fixes mavlink_if0: invalid data rate '(null)' bug
2015-06-11 15:43:28 -10:00
Mark Charlebois
9ef7db6a36
QuRT: Added missing hrt workqueue files
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 18:16:29 -07:00
Mark Charlebois
e4a8f32f1b
QuRT: Added HRT workqueues as per POSIX
...
A high rate workqueue is required that acts like an interrupt handler
for a HW timer.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-06-11 18:13:36 -07:00