4729 Commits

Author SHA1 Message Date
Mark Charlebois
3654aec3a5 POSIX: ported px4_daemon_app
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:34:23 -07:00
Mark Charlebois
eed2479dfc Added px4_ prefix to task_spawn_cmd
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:20:08 -07: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
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
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
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
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
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
0e78e38cda commander: Use pre-rotated topic in board frame 2015-05-04 14:06:19 +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
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
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
Mark Charlebois
a209fdc8ef Added missing lock() unlock() to MuORB
The commented out lock and unlock were determined to be needed and added back.

The unit test for VDev was updated. It showed the race between the poll and a
write that only does a poll_notify().

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-29 17:04:30 -07:00
Mark Charlebois
b408983d4c mavlink: added back MODULE_COMMAND
The MODULE_COMMAND was inadvertently removed during merge of master

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-28 17:27:14 -07:00
Mark Charlebois
523a4aa785 Clang warning fix
Clang build fails due to -Werr and warning on use of
if (!condition != other_condition && some_condition)

Clang wants to be clear that the initial '!' wasn't
intended for the whole expression.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-28 12:29:50 -07:00
Mark Charlebois
2446dfec16 Fixups after merge from master
MuORB was missing the orb_exists() function added to uORB.cpp

gyro_calibration.cpp still had some merge conflicts that had not been resolved.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-28 12:28:10 -07:00
Mark Charlebois
190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Roman Bapst
be03f98d64 added esc calibration routines 2015-04-28 15:15:46 +02:00
Roman Bapst
9eac4b995f fixed message ID 2015-04-28 12:15:42 +02:00
Mark Charlebois
09718fa324 Revamped debug macros
Created px4_debug,h to define:

PX4_DBG
PX4_INFO
PX4_WARN
PX4_ERR

These enable OS specific mappings to be made, filtering, etc.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-27 21:58:54 -07:00
Mark Charlebois
58a33dd26a Added simulated tone_alarm and enabled led for POSIX
Added simulated tone_alarm class and enabled led class for posix build.

The simulator implements the led_init, led_on, led_off, led_toggle calls.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-27 14:00:06 -07:00
Roman Bapst
bd1c3363df added new vtol mav types 2015-04-27 22:22:52 +02:00
Simon Wilks
ef63babb71 Make sure circuit breakers are ready before the first preflight check call. 2015-04-27 13:30:37 +02:00
Simon Wilks
868b9b33ed Make sure we log the airspeed check to the console as well. 2015-04-27 13:30:37 +02:00
Lorenz Meier
1420a0c74c Sensors: Be less verbose 2015-04-27 09:07:53 +02:00
Lorenz Meier
16b033982c Dataman: Be more compact in boot output 2015-04-27 09:07:53 +02:00
Lorenz Meier
3f8c81433e commander: Provide more useful mission feedback 2015-04-27 09:07:53 +02:00
Lorenz Meier
965e7cce03 mavlink app: Robustify param handling 2015-04-27 09:03:49 +02:00
Lorenz Meier
ed12d9c733 systemlib: Fix param used counting 2015-04-27 09:03:35 +02:00
Lorenz Meier
8e4c78cd2d Load all GCS-required params 2015-04-27 00:21:25 +02:00
Lorenz Meier
b739ad1a80 Remove reference to completely unused parameter 2015-04-26 23:36:16 +02:00
Lorenz Meier
a57030c836 commander: Do not lock down the system once HIL has kickeed in 2015-04-26 18:27:48 +02:00
Lorenz Meier
b07964660e commander: prune old code, do not run preflight checks when nothing relevant in the system is changing. 2015-04-26 17:39:00 +02:00
Lorenz Meier
362672ece8 commander: Fix calibration feedback so that QGC picks up all error conditions 2015-04-26 17:33:45 +02:00
Don Gagne
a7f88d97b8 Sensor cal rework
- cancel support
- versioned cal messages
- better still detection
- better messaging
2015-04-26 14:34:19 +02:00
Lorenz Meier
b7409635b7 Mission feasibility checker: Do not use static where its not needed. 2015-04-26 14:33:57 +02:00
Lorenz Meier
f1ff61ec4f sensors app: Move a static member to being a class member 2015-04-26 14:33:57 +02:00
Lorenz Meier
1d283bf3c1 MAVLink app: Fix usage of static struct, make streams list const 2015-04-26 14:33:57 +02:00
Lorenz Meier
6c9e5d1ecf commander: Only subscribe to existing telemetry status publications 2015-04-26 14:33:56 +02:00
Lorenz Meier
6e060c01a7 SDLOG2: Optimize runtime efficiency 2015-04-26 14:33:56 +02:00
Lorenz Meier
28dfb8983a uORB: Add API to check if a topic exists yet 2015-04-26 14:33:56 +02:00
Lorenz Meier
f7f949f455 Navigator: Reduce excessive stack 2015-04-26 14:33:56 +02:00
Lorenz Meier
eba97bba4c MC att control: reduce stack slightly 2015-04-26 14:33:56 +02:00
Lorenz Meier
b1c0176f42 MC pos control: Reduce stack 2015-04-26 14:33:56 +02:00