Commit Graph

12347 Commits

Author SHA1 Message Date
Lorenz Meier 7d775eb112 Merge pull request #2170 from andrea-nisti/master
mpc parameter INAV_W_Z_VIS_P increased
2015-05-14 00:39:22 +02:00
nopeppermint 169f112f0d change name in board.h 2015-05-13 22:59:30 +02:00
nopeppermint 52fca5b7a1 correct comments 2015-05-13 22:24:32 +02:00
nopeppermint b0efb24468 add USART6 on PC6(TX) and PC7(RX) to discovery 2015-05-13 22:21:59 +02:00
Lorenz Meier 14b09d6367 Merge pull request #2171 from NaterGator/master
Fix potential null pointer deref in Mavlink dtor if task_main returns error
2015-05-13 19:17:15 +02:00
mcharleb 7115ec3ab6 Merge pull request #10 from tumbili/hil_message
read hil sensor message instead of highres imu message
2015-05-13 09:19:41 -07:00
Nate Weibley b4e7b041ca Fix potential null pointer deref if Mavlink start fails before task_main loop
LL_APPEND is called just before the loop spins up but various error conditions can cause the task to exit before then.
When that happens Mavlink::start_helper calls delete on the instance which tries to prune it from the global list.
If this is the first Mavlink instance to attempt starting the list head is null and we hardfault in the Mavlink dtor.

Only call LL_DELETE after checking the list head for a null pointer.
2015-05-13 11:33:11 -04:00
Andrea Nistico 16aa03e30a mpc parameter INAV_W_Z_VIS_P increased 2015-05-13 17:22:10 +02:00
Roman Bapst 90c3aec1fd make main LED show low and critical battery status 2015-05-13 16:24:44 +02:00
Lorenz Meier 66b87ac761 Fix state-level HIL. Reported by @s3erjaeh 2015-05-13 16:04:33 +02:00
Lorenz Meier 6f94951050 Fix sdlog2 stopping on param write. Found by Severin Leuenberger 2015-05-13 15:46:35 +02:00
Lorenz Meier 890c3af13c multiplatform: Update yaw P param name 2015-05-13 15:34:07 +02:00
Roman Bapst 542dc9f65d added default rate I gain for multicopters. added default gains for FireFly6 in mc mode (from Simon Wilks) 2015-05-13 15:28:02 +02:00
Lorenz Meier efb60ab779 multiplatform pos controller: Rename params to prevent mixup with MPC params 2015-05-13 15:19:16 +02:00
Lorenz Meier e400ec586d multiplatform att controller: Rename params to prevent mixup with MC params 2015-05-13 15:18:50 +02:00
Lorenz Meier 164a254214 Merge pull request #2143 from PX4/mc_pos_D_reset
mc_pos_control: always update previous velocity
2015-05-13 13:58:15 +02:00
Roman Bapst cf27fc59c7 read hil sensor message instead of highres imu message 2015-05-13 10:31:52 +02:00
mcharleb c1927b7387 Merge pull request #9 from tumbili/send_controls
send pwm outputs to simulator
2015-05-12 15:24:37 -07:00
tumbili 9686f8004e send pwm outputs to simulator 2015-05-12 23:55:32 +02:00
mcharleb 21d7e4f24f Merge pull request #8 from tumbili/serial_device
read serial device to obtain manual control setpoint
2015-05-12 14:36:18 -07:00
tumbili 3a79679e2d get manual control setpoint from PIXHAWK 2015-05-12 23:15:58 +02:00
Mark Charlebois 3db5f3bb3b QuRT: toolchain changes
Reworking toolchain and main.cpp for QuRT to a final link can be
done and the apps.h file is autogenerated.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-12 11:37:28 -07:00
Mark Charlebois 14cbd240ff QuRT: added qurt_log
Implement as a printf for now

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-11 19:38:03 -07:00
Mark Charlebois d0bf4ab449 Simulator: refactored mavlink additions
QuRT does not support UDP so moved the mavlink specific code
to a new file that is not built for the qurt target

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-11 19:25:11 -07:00
Mark Charlebois 2f434eb395 POSIX: fixups for px4_log.h change
After merge from qurt branch, fixups for posix build

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-11 16:14:06 -07:00
Mark Charlebois 2d32395bc0 Merge branch 'qurt' into linux 2015-05-11 16:07:53 -07:00
Mark Charlebois a99f916bdf POSIX: Changed px4_debug.h to px4_log.h
Also changed use of printf to PX4_WARN or PX4_INFO in posix and
qurt tests.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-11 16:04:39 -07:00
mcharleb 11010a648c Merge pull request #7 from tumbili/polling
implemented polling to prevent unnecessary cycling.
2015-05-11 15:00:48 -07:00
tumbili c074d6e913 implemented polling of socket file descriptor and uorb topic file descriptor 2015-05-11 23:55:11 +02:00
mcharleb c303525336 Merge pull request #6 from tumbili/simulator_udp
implemented bidirectional udp communication with simulator
2015-05-11 08:39:04 -07:00
Lorenz Meier b3ed0cf36b Navigator: be more verbose about RTL 2015-05-11 09:37:42 +02:00
Lorenz Meier a124bc07aa Ensure SYS_AUTOSTART param is always selected 2015-05-10 23:58:25 +02:00
Lorenz Meier 7f3f572c40 Always boot, even with no pressure sensor or ADC. Fixes #2151 2015-05-10 10:21:16 +02:00
tumbili b6441d2966 implemented new mixer strategy 2015-05-10 00:42:53 +02:00
tumbili 9119687177 make socket non-blocking, moved socket includes to header file to avoid forward declarations 2015-05-09 10:35:25 +02:00
tumbili 39711ca908 implemented bidirectional udp communication with simulator 2015-05-08 21:51:21 +02:00
Lorenz Meier 29eeb724a1 commander: Enforce rotation during mag calibration step 2015-05-08 11:23:19 +02:00
Lorenz Meier 3be1fc7d42 commander gyro calibration: Do not require a specific position, automatically start a retry after motion on the first try 2015-05-08 11:01:19 +02:00
Mark Charlebois 0ba5305e94 QuRT: satisfy missing deps
There is no ioctl or write. Added stubs.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 23:21:24 -07:00
Mark Charlebois 84ca66dcf7 QuRT: updated task support based on posix fixes
The posix layer implementations should work on QuRT.

QuRT needs to provide a way for getting the current time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 22:58:51 -07:00
Mark Charlebois 3225edfabb QuRT: Really reverted to non-posix APIs
Using non-posix APIs for now.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 21:51:02 -07:00
Mark Charlebois ad1865ef9f QuRT: Move to POSIX API for threads
Use the pthread APIs to implement task support

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 14:55:28 -07:00
Mark Charlebois 8dfb09418b QuRT: added #include<px4_time.h> to posix unit tests
QuRT does not define usleep and sleep, so they are stubbed out
for now.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 14:40:31 -07:00
Mark Charlebois 8caefc183d QuRT: updated toolchain file to link against libdspal.a
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 13:23:45 -07:00
Mark Charlebois fd3715912e QuRT: stub out missing functions
Stub out the missing functions to enable running in the simulator

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 12:54:39 -07:00
Mark Charlebois 632f77df49 QuRT: add drivers/led
The drivers/led module was missing from the QuRT config

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 11:55:24 -07:00
Mark Charlebois a0d548db9a Changed circuit_breaker to not use px4.h
The inclusion of px4.h requires C++ features not supported in the
Hexagon toolchain. The features are not required so the required
headers are used instead.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 11:35:01 -07:00
Mark Charlebois 99822038f3 POSIX: Fixed px4_open code to not create a file when opening a device
The code to created a virtual file was preventing the creation of
device nodes.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 10:50:23 -07:00
Mark Charlebois 4216a0d64d POSIX: remove check for /tmp/ttyS{0|1}
The posix build now disables the UART code in mavlink.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 10:46:10 -07:00
Mark Charlebois 41a2d30cfe Merge branch 'linux' of http://github.com/mcharleb/Firmware into linux 2015-05-07 10:08:56 -07:00