Commit Graph

12224 Commits

Author SHA1 Message Date
Roman Bapst 525e605b92 vtol: publish actuator controls in manual mode 2015-05-06 22:53:56 +02:00
Mark Charlebois 7ebee7ca6f uORB: Unit test fix
The latency_test used to pass an object pointer as argv which
won't work in the posix port because it expects argv to be a
null terminated array of character pointers (which it makes a
copy of).

The test was refactored to use a singleton pattern and avoid
having to pass the object pointer to the thread.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 13:19:52 -07:00
Mark Charlebois 872e1ebda0 GCC fixes for warnings
GCC was more picky about prototypes for inlines being required.

The generate_listener.py script used incorrect printf formats and
was casting %f params to float, but printf casts all %f params to
double per the spec.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 11:45:23 -07:00
Lorenz Meier 0d1d92484b MAVLink app: Parameter docs and new test parameter 2015-05-06 19:39:17 +02:00
Lorenz Meier 150c5d2d8c Commander: parameter style change 2015-05-06 19:38:53 +02:00
Mark Charlebois 5299f76706 POSIX: initialize before running script
The initialization functions were called after the script
commands were run causing a deadlock waiting for an
uninitialized semaphore.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 09:51:31 -07:00
Lorenz Meier 79807b4ace Merge pull request #2136 from UAVenture/filter_choice2
Attitude filter for multirotors: Let users choose between filters, default to old one
2015-05-06 11:58:33 +02:00
Andreas Antener 95803a774a update param docs, change default back to old ekf for inav based estimation 2015-05-06 11:37:02 +02:00
Lorenz Meier 9892f12d2e Attitude filter for multirotors: Let users choose between filters 2015-05-06 09:16:34 +02:00
Mark Charlebois e28049a387 POSIX: changed SIGCONT to SIGALRM
QuRT doesn't seemto support SIGCONT

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 16:43:54 -07:00
Mark Charlebois 6d2efd0e8f uORB: Unit test called close vs px4_close
The unit test should have called px4_close(), not close().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 13:07:54 -07:00
Mark Charlebois b7918ee45a Nuttx: remove -Wframe-larger-than=1024
The build fails when modules override this flag with a larger value,
and this lower value is still checked. The new flag seems to be in
addition to the old flag, not a replacement.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 12:16:23 -07:00
Mark Charlebois 0cea93a55c POSIX and QuRT: fixed calls needing px4_ prefix
There were some missed calls to open and ioctl that need to be
px4_open and px4_ioctl.

QuRT also does not provide usleep() so px4_time.h has to be included
in files calling usleep.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 12:13:39 -07:00
Mark Charlebois f2af8b08ed uORB: fix segfault in unit test
The unit test was not passing a null pointer terminated argv.
The posix port depends on argv being null terminated to
determine how may args were passed since PX4 API doesn't
pass argc when spawning a new task.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 12:09:19 -07:00
Lorenz Meier 6c859245e2 Merge pull request #2013 from PX4/attitude_estimator_q
attitude_estimator_q added
2015-05-05 20:29:51 +02:00
Lorenz Meier 8f606cd491 Merge pull request #2131 from PX4/sensor_cal_fix
fix accel calibration
2015-05-05 20:17:41 +02:00
Mark Charlebois e33a164ddb uORB: Major refactoring
uORB was refactored in order to support the MuORB changes required
for QURT. Those changes wil be added in a subsequent commit.

The files are split out by posix and nuttx so the changes are visible.
When this has been tested, the files can be re-merged and re-tested.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 10:52:15 -07:00
Roman Bapst 0217e2ed56 fix accel calibration: rotate sensor values into board frame 2015-05-05 18:41:50 +02:00
Lorenz Meier f7b66d9853 Merge pull request #2130 from UAVenture/revert_mixer_update
Revert "Merge pull request #1819 from PX4/chan16" because of #2113
2015-05-05 15:09:50 +02:00
Andreas Antener cd4154d805 Revert "Merge pull request #1819 from PX4/chan16" because of #2113
This reverts commit f8c8876642, reversing
changes made to de3888bed7.
2015-05-05 14:41:53 +02:00
Mark Charlebois e24405d374 POSIX: fixed hrt call and workqueue implementation
The HRT call processing normally happens via HW timer interrupt
handler. Since the POSIX port has no ISR handling, the HP work
queue is used.

Instead of irq_save() and irq_restore() calls to disable/enable
interrupts, a mutex is used to protect each queue.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 00:27:14 -07:00
Mark Charlebois 12a25e4b63 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
	src/modules/commander/module.mk
	src/modules/mavlink/mavlink_ftp.h
	src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
Mark Charlebois ed621a6a8d POSIX: Enabled hrt queued work to be run
In STM32, the ISR handler calls hrt_call_invoke(). There is no
interrupt timer inthe POSIX port so a work item is put on the
high priority work queue to expire at the next event (in ticks)
or at the next max delay interval.

Counter wrapping is likely still not handled properly in this code.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-04 16:09:00 -07:00
Mark Charlebois 7ac9fc38e4 Commented out 1st definition of MAVLINK_SRC
The variable MAVLINK_SRC was defined and then redefined.
Commented out the first definition and moved beside that overriding
definition for visibility.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-04 15:48:06 -07:00
Mark Charlebois cfd96a8ab4 POSIX: Added missing include path and -Wno-packed flag
The changes to the simulator added an include of

mavlink/include/v1.0/... to simulator.h which was not in the included paths.

The included header file also causes clang to issue a -Wpacked warning that
had to be silenced.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-04 15:33:08 -07:00
mcharleb 21a5dfc828 Merge pull request #5 from tumbili/JMAVsim_interface
JMAVSim interface
2015-05-04 14:15:29 -07:00
tumbili 4b34d0c297 improved topic listener 2015-05-04 23:10:23 +02:00
tumbili 17267a7f66 enable receiving mavlink highres imu message (via udp) from external simulator 2015-05-04 23:10:23 +02:00
Lorenz Meier 577bdf3a0d Merge pull request #2120 from DonLakeFlyer/BurstDownload
New burst mode ftp file download
2015-05-04 17:24:01 +02:00
Lorenz Meier e09f5d2871 IO driver: Ensure comms protocol cannot get into integer overflow on bad control outputs. Fixes #2119. 2015-05-04 14:59:07 +02:00
Lorenz Meier 980d9bcf3e IO driver: Code style 2015-05-04 14:55:19 +02:00
Lorenz Meier 0e78e38cda commander: Use pre-rotated topic in board frame 2015-05-04 14:06:19 +02:00
Thomas Gubler 07f6165290 make parameter parser work with python3 2015-05-04 14:04:09 +02:00
Andreas Antener 86cd484b82 convert -PI to PI attitude range to -1 to 1 for gimbal output 2015-05-04 13:10:58 +02:00
Lorenz Meier f76d693592 TBS Disco config: Enable manual pass-through 2015-05-04 13:02:29 +02:00
Lorenz Meier da7754e9c7 Merge pull request #2101 from PX4/ESC_calibration
Esc calibration
2015-05-04 13:00:40 +02:00
Don Gagne 46da294ffb New bust mode ftp file download 2015-05-03 19:26:54 -07:00
Mark Charlebois 1a8bd15d98 Minor cleanup of mixer changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-03 11:20:07 -07:00
mcharleb 1b985ab9fb Merge pull request #3 from tumbili/mixer
ported mixer app
2015-05-03 11:06:17 -07:00
tumbili 8a873df9d0 ported mixer app 2015-05-03 17:30:31 +02:00
Thomas Gubler 0b5e6bdf97 Merge pull request #2117 from PX4/fwattincludes
fix ecl roll yaw controller includes
2015-05-03 10:13:38 +02:00
Thomas Gubler 731bd97f39 Merge pull request #2116 from PX4/ros_perf_counter_return
ros perf counter dummy: fix warning about missing return
2015-05-03 10:12:57 +02:00
Thomas Gubler d837bf4a0a fix ecl roll yaw controller includes 2015-05-03 08:54:08 +02:00
Thomas Gubler 44153eeaa1 ros perf counter dummy: fix warning about missing return 2015-05-02 21:46:37 +02:00
Mark Charlebois ebdf178ba3 Removed annoying "I2C SIM transfer_4" message
The debug message made it difficult to use the shell for the
posix build. Commented out the debug line.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 16:24:43 -07:00
Mark Charlebois 6acdc2ae3f POSIX: workaround for poll notification
Sensor combined topic notification wasnot working because
the calls to hrt_called() and hrt_call_after() in
ORBDevNode::appears_updated() are not working correctly.

This commit ifdefs out those calls, and the poling seems
to work correctly. This is a workaround until the issue is
resolved.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 13:17:16 -07:00
Mark Charlebois 5557ecf3d7 POSIX: Added airspeed simulator
This seems to be a dependency for the system to start up.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 13:16:03 -07:00
Mark Charlebois 2f8cad6c00 Fixed bad update of poll to px4_poll change
I updated poll to px4_poll but forgot to change
struct pollfd to px4_pollfd_struct_t.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 09:12:39 -07:00
Mark Charlebois b7120f1b9f Fixed call to poll to be px4_poll
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 09:02:04 -07:00
Mark Charlebois 93a3eeb569 Simulator: Added Roman's sensors combined topic
Simulator can work as before with -s flag or with Roman's additions to
publish the sensors combined topic using -p flag.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-29 23:45:54 -07:00