Lorenz Meier
5ddbe24d8e
Fixed code style for meas_airspeed.cpp
2013-08-05 12:26:31 +02:00
px4dev
1acbbe46d1
Make it possible to create a cdev without automatically creating a device node.
2013-08-04 19:49:19 -07:00
px4dev
1fb4705ab7
Add size and flush methods to the ringbuffer class.
2013-08-04 19:48:46 -07:00
px4dev
4b4f33e6a4
Add direct-access methods to the base Device class, so that there's a common way of talking to drivers regardless of which of the specialised classes they derive from.
...
Make the Device destructor public and virtual, so that arbitrary devices can be deleted. Likewise for classes that derive from it.
Make Device::init public so that arbitrary devices can be initialised after being returned by factories.
2013-08-04 19:48:20 -07:00
px4dev
567f621754
Fix an issue with the pwm_servo driver when using one of the STM32 advanced timers.
2013-08-04 19:43:05 -07:00
px4dev
c33048b521
Add the ability to cancel a begin/end perf counter if the begin turns out to have been in error.
2013-08-04 19:42:16 -07:00
px4dev
97e4909d9e
Improvements to the HX stream protocol implementation.
2013-08-04 19:40:57 -07:00
Lorenz Meier
e95861e9df
Merge branch 'mpu6k_queue' of github.com:PX4/Firmware into fmuv2_bringup
2013-08-04 23:50:41 +02:00
Lorenz Meier
b6ceba4c0a
Merged master
2013-08-04 23:50:23 +02:00
Lorenz Meier
8b4413f3b1
Hotfix for attitude estimator EKF init
2013-08-04 19:22:32 +02:00
Lorenz Meier
cac4a6f578
Merge branch 'master' into mpu6k_queue
2013-08-04 19:21:45 +02:00
Lorenz Meier
c2ee4437e0
Rate limit sensors, as the in-sensor lowpass allows us to operate at 200-250 Hz
2013-08-04 19:20:55 +02:00
Lorenz Meier
17da1e3f36
Fixed MS5611 startup on V1 boards
2013-08-04 19:19:48 +02:00
Andrew Tridgell
ac89322d74
mathlib: added LowPassFilter2p object
...
used in gyro and accel drivers for better filtering
2013-08-04 19:12:41 +02:00
Lorenz Meier
36cca7a31b
Added rate limit in sensors app. Just pending accel filters now
2013-08-04 19:10:56 +02:00
Lorenz Meier
9bcabc5ba9
Hotfix for attitude estimator EKF init
2013-08-04 19:09:10 +02:00
Andrew Tridgell
83189a85da
l3gd20: disable the FIFO
...
the FIFO was not gaining us anything, and was adding latency. If we
use the FIFO we'd need to do multiple SPI transfers to ensure it is
drained
2013-08-04 16:13:48 +02:00
Andrew Tridgell
26204496b6
Merged LSM303D lowpass
2013-08-04 15:49:34 +02:00
Andrew Tridgell
686edfefb8
Removed LSM303D filter
2013-08-04 15:47:35 +02:00
Andrew Tridgell
a87690d0e2
Added L3GD20 lowpass
2013-08-04 15:46:41 +02:00
Andrew Tridgell
7ddd88623e
mathlib: added LowPassFilter2p object
...
used in gyro and accel drivers for better filtering
2013-08-04 15:43:56 +02:00
Lorenz Meier
f45e74265e
Fixed driver test / direct read, looks good
2013-08-04 15:15:41 +02:00
px4dev
e931d3b9cd
Add an option to the systemreset() call and to the reboot command (-b) to reboot into the bootloader.
...
The system will remain in the bootloader until it's reset, or until an upload is completed.
2013-08-03 22:35:18 -07:00
px4dev
02f5b79948
Try to save our sanity a bit and use the generic ringbuffer class rather than re-implementing the wheel.
2013-08-03 19:03:24 -07:00
px4dev
a3ab88872c
Add some more useful methods to the ringbuffer class.
2013-08-03 19:02:54 -07:00
px4dev
42f2794dee
Merge branch 'master' into mpu6k_queue
2013-08-03 18:29:26 -07:00
px4dev
234ad24081
Simple ring-buffer template class, because re-implementing the wheel in every driver is silly.
2013-08-03 18:23:48 -07:00
Lorenz Meier
9499e48a52
Fixed setting mag queue depth
2013-08-04 01:52:22 +02:00
Lorenz Meier
9a97001cc8
Added queue to mpu6k driver
2013-08-04 01:50:58 +02:00
James Goppert
97b75951b1
Shortened segway param names.
2013-08-03 14:33:43 -04:00
James Goppert
8f1487b157
Merge branch 'master' of github.com:jgoppert/Firmware into md25_dev
2013-08-03 12:18:41 -04:00
Andrew Tridgell
4708693f86
nshterm: start a nsh console on any device
...
this is used in APM startup to fallback to a console on ttyACM0 if
startup fails for any reason
2013-08-03 11:41:35 +02:00
px4dev
9d6ec6b365
Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
...
Rename some directories that got left behind in the great board renaming.
2013-08-02 22:34:55 -07:00
Andrew Tridgell
a9c1882ea0
l3gd20: fixed bit definitions for filter rates
...
and allow requests for the rates in table 21 of the l3gd20H datasheet
2013-08-02 16:35:54 +02:00
Lorenz Meier
b9446af3f9
Show correct battery voltage for v2 boards
2013-08-02 16:29:43 +02:00
Andrew Tridgell
bee8e27f04
adc: allow "adc test" to read 10 values
2013-08-02 12:45:50 +02:00
Andrew Tridgell
c7d8535151
px4io: don't try the px4io serial interface on FMUv1
...
this caused px4io start to fail on FMUv1
2013-08-02 12:45:41 +02:00
Andrew Tridgell
f3764d0b5a
px4fmu: expanded "fmu test"
...
this now does testing in a similar manner as "px4io test", except that
it tests both ioctl and write based setting of servos
2013-08-02 12:44:47 +02:00
Anton Babushkin
02d4480e8e
commander rewrite almost completed, WIP
2013-07-31 20:58:27 +04:00
px4dev
feee1ccc65
Remove some timer reload events; these seem to break PWM output on IO.
2013-07-30 22:47:17 -07:00
Julian Oes
7e9a18da79
Changed gyro scaling according to datasheet
2013-07-30 18:20:31 +02:00
Lorenz Meier
1543c99003
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-30 11:28:30 +02:00
Lorenz Meier
d14891554e
Merge branch 'config' of github.com:PX4/Firmware
2013-07-30 11:03:45 +02:00
Andrew Tridgell
dad76c56c6
ets_airspeed: cope with zero value from ETS airspeed sensor
2013-07-30 10:58:47 +02:00
px4dev
57cbf724f1
Fix the clock enable register for FMUv2 PWM outputs 1-4.
...
Teach the stm32 pwm driver about the MOE bit on advanced timers.
2013-07-29 23:13:46 -07:00
Lorenz Meier
db527ee881
Removed unused code
2013-07-29 11:00:36 +02:00
James Goppert
dc542b2a48
Segway stabilized.
2013-07-28 22:27:05 -04:00
Anton Babushkin
8c1067a017
State machine rewritten, compiles, WIP
2013-07-28 23:12:16 +04:00
Lorenz Meier
1410625dea
Enabled additional drivers on v2, kill misplaced code in mkblctrl
2013-07-28 16:12:40 +02:00
Lorenz Meier
453687a006
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-28 15:42:47 +02:00
Lorenz Meier
57db5d912b
Merge pull request #343 from PX4/meas_split
...
ETS airspeed and MEAS airspeed combined driver
2013-07-28 06:41:42 -07:00
Lorenz Meier
382c637fab
Fixed stack sizes for airspeed drivers
2013-07-28 15:41:10 +02:00
Lorenz Meier
1984e609b6
Merged in RAMTRON update
2013-07-28 14:57:19 +02:00
Lorenz Meier
4e5eb9740b
Fixed led and reboot linker challenges in C++ environments
2013-07-28 14:50:27 +02:00
Lorenz Meier
30405331bd
Merge branch 'master' of github.com:PX4/Firmware
2013-07-28 14:10:53 +02:00
Lorenz Meier
f4fc3bbd57
Added RAMTRON device, updated diagrams
2013-07-28 14:10:37 +02:00
James Goppert
1980d9dd63
Working on segway controller, restructure of fixedwing.
2013-07-28 01:35:43 -04:00
James Goppert
95aa82f586
Fixed arg number.
2013-07-28 00:05:56 -04:00
James Goppert
308f1dbfa4
Added amplitude frequency to md25sine command.
2013-07-28 00:05:56 -04:00
James Goppert
4cfcea1767
Working on debug output.
2013-07-28 00:05:56 -04:00
James Goppert
77c084a4cf
Fixed typo with strncpy.
2013-07-28 00:05:56 -04:00
James Goppert
76d086e077
Working with debug messages.
2013-07-28 00:05:56 -04:00
James Goppert
78ef6f5265
Changed final time.
2013-07-28 00:05:56 -04:00
James Goppert
f2a0cce958
Fixed timing issues.
2013-07-28 00:05:56 -04:00
James Goppert
e7cc6e71ad
Added pub update.
2013-07-28 00:05:56 -04:00
James Goppert
42f09c4b54
Working on sysid. Added debug values.
2013-07-28 00:05:56 -04:00
James Goppert
7643106208
Added log print ability to md25 driver.
2013-07-28 00:05:56 -04:00
James Goppert
f3bfbd87b1
Added sine test.
2013-07-28 00:05:56 -04:00
Lorenz Meier
95dde5f1be
Implemented config command, fixed a number range set / get issues for some sensor drivers, fixed gyro calibration
2013-07-26 18:24:37 +02:00
Lorenz Meier
18635c5f5f
Merge branch 'fmuv2_bringup' of github.com:cvg/Firmware_Private into fmuv2_bringup
2013-07-26 15:16:58 +02:00
Lorenz Meier
dd3033fa6f
Symbol cleanup for servo vs. battery voltage
2013-07-26 15:16:48 +02:00
Anton Babushkin
a013fc5d0b
multirotor_pos_control: limit xy velocity integral output to tilt_max / 2
2013-07-25 20:05:45 +04:00
Lorenz Meier
ffd14e1396
Updated F330 script, enabled amber led
2013-07-25 12:44:47 +02:00
Lorenz Meier
830dff9b6a
First operational test version, provides correct readings (as far as tests were possible)
2013-07-25 11:16:25 +02:00
Lorenz Meier
a726ec632f
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-25 08:16:22 +02:00
px4dev
33e33d71b8
Just the changes required to avoid SPI bus conflicts for MS5611
2013-07-24 22:53:10 -07:00
px4dev
d57d12818a
Revert "Disable interrupts during ms5611 SPI transactions to prevent interruption by sensor drivers polling other sensors from interrupt context."
...
This reverts commit 31ded04c80
.
2013-07-24 22:51:27 -07:00
Anton Babushkin
8dd5130d99
position_estimator_inav, multirotor_pos_control: bugs fixed
2013-07-24 18:20:04 +04:00
Anton Babushkin
7c1693a877
commander: don't notify user about rejected disarm to not confuse, flag_control_altitude_enabled added, flags values fixed
2013-07-23 14:56:12 +04:00
Anton Babushkin
55fd19f281
sensors: ASSISTED switch channel added
2013-07-22 22:37:10 +04:00
Anton Babushkin
963abd66ba
commander: WIP, SEATBELT renamed to ASSISTED, added SIMPLE mode, added ASSISTED switch, some cleanup and reorganizing
2013-07-22 21:48:21 +04:00
Anton Babushkin
57837eb0b9
Merge commit 'dc5bcdda761e5f8f4f7f26a600f02df007ab1df6' into seatbelt_multirotor
2013-07-22 14:58:40 +04:00
Lorenz Meier
edcd25b5ed
Airspeed sensor driver operational, needs cleanup / testing
2013-07-22 10:24:35 +02:00
Lorenz Meier
97f732ccf1
Fixed up ets driver (not tested, WIP on meas driver)
2013-07-22 09:19:59 +02:00
Anton Babushkin
bd50092dd2
position_estimator_inav: accelerometer bias estimation for Z, default weights for GPS updated
2013-07-21 22:44:46 +04:00
Anton Babushkin
98a4345410
multirotor_pos_control: some refactoring and cleanup, attitude-thrust correction moved to thrust_pid
2013-07-21 22:42:45 +04:00
Lorenz Meier
dc5bcdda76
Hotfix: Made accel calibration a bit more forgiving about motion threshold
2013-07-21 11:29:10 +02:00
Lorenz Meier
0f19de5311
Ensured correct pointer init
2013-07-21 11:27:52 +02:00
px4dev
31ded04c80
Disable interrupts during ms5611 SPI transactions to prevent interruption by sensor drivers polling other sensors from interrupt context.
2013-07-20 19:09:59 -07:00
px4dev
f6daafba03
Revert "Changed the MS5611 from the workq to hrt_call_every implementation, this seems to solve the SPI chip select overlaps"
...
This reverts commit c93e743374
.
2013-07-20 18:51:46 -07:00
px4dev
cfbdf7c903
Revert "Corrected the interval of the MS5611"
...
This reverts commit 094ff1261a
.
2013-07-20 18:51:25 -07:00
Lorenz Meier
eb52eae153
Code style for BlinkM
2013-07-20 13:48:19 +02:00
Lorenz Meier
68ab69de01
moved commander to C++, preparation for better gyro scale calibration respecting the current attitude for more accurate results
2013-07-20 13:47:51 +02:00
Lorenz Meier
bbecaa7de3
Merged
2013-07-20 08:31:52 +02:00
Lorenz Meier
c88e8e335c
Merged master
2013-07-20 08:30:20 +02:00
Anton Babushkin
1dac58571e
multirotor_pos_control: minor cleanup
2013-07-19 22:40:45 +04:00
Julian Oes
094ff1261a
Corrected the interval of the MS5611
2013-07-19 18:30:01 +02:00
Julian Oes
c93e743374
Changed the MS5611 from the workq to hrt_call_every implementation, this seems to solve the SPI chip select overlaps
2013-07-19 17:47:32 +02:00
Lorenz Meier
da1bf69ce2
Added gyro scale estimation (but param is NOT written)
2013-07-19 13:07:51 +02:00
Lorenz Meier
1575da4390
Merge branch 'master' of github.com:PX4/Firmware into new_state_machine
2013-07-19 12:53:37 +02:00
sjwilks
a8ac56b9e5
Merge pull request #338 from PX4/autostart
...
Implemented new, simple system boot config and sane default value system
2013-07-19 03:42:51 -07:00
Lorenz Meier
4d88b56e38
Handle case of non-present leds in preflight check
2013-07-19 08:14:44 +02:00
Lorenz Meier
2c31961bb0
Minor change to make USB startup more resilient
2013-07-19 08:09:35 +02:00
Julian Oes
374d204b92
Enable BDU instead of CONT mode
2013-07-18 19:48:15 +02:00
Julian Oes
e309b9ab4a
Disable IIR filter for now
2013-07-18 19:45:44 +02:00
Julian Oes
da152e148d
Added iirFilter to LSM303D
2013-07-18 16:15:43 +02:00
Lorenz Meier
da54659b5e
Removed wrong dependency check
2013-07-18 15:55:06 +02:00
Lorenz Meier
798075c90d
Work around orb_check fail in sensors app
2013-07-18 15:50:07 +02:00
Julian Oes
f4df4a4e08
Forgot to add current samplerate to constructor
2013-07-18 15:30:39 +02:00
Julian Oes
eb28f5996f
Some lost LSM303D fixes for range and scale
2013-07-18 15:21:39 +02:00
Lorenz Meier
e19d2e94ec
Hotfix: Ensured there are never two filters running at the same time if auto-magic happens via USB link
2013-07-18 15:20:36 +02:00
Julian Oes
f5f7b3f6dd
Added scale ioctl to LSM303D driver
2013-07-18 14:42:08 +02:00
Lorenz Meier
a5c8d8c5f2
Robustified accel cal
2013-07-18 14:24:32 +02:00
Lorenz Meier
7bf2edc3bf
Script cleanup, WIP on mavlink logging
2013-07-18 14:01:42 +02:00
Lorenz Meier
ad8fc7e61e
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-18 13:28:26 +02:00
Lorenz Meier
a4d0594bd7
Merge branch 'master' into autostart
2013-07-18 13:18:42 +02:00
Lorenz Meier
8d1abf4aa4
Lunchtime HOTFIX: Bring back USB console to operational, allow single-USB connection operation via QGC
2013-07-18 13:16:34 +02:00
Lorenz Meier
d84824dd4f
Compile fixes
2013-07-18 10:35:36 +02:00
Lorenz Meier
349c962469
Compiling / executing WIP on leds, leds not operational yet
2013-07-18 10:01:43 +02:00
Lorenz Meier
17445b0fbb
Added led support to FMUv2
2013-07-17 22:54:05 +02:00
Anton Babushkin
68b7e03155
sdlog2: copyright fix
2013-07-17 22:27:22 +04:00
Anton Babushkin
17366c4b0d
multirotor_pos_control: fixes for AUTO mode, minor cleanup
2013-07-17 22:22:51 +04:00
px4dev
5679a1b2b1
Fix handling of register read operation errors.
2013-07-17 09:19:17 -07:00
Anton Babushkin
c4248c055f
position_estimator_inav: minor fixes
2013-07-17 19:54:47 +04:00
Anton Babushkin
c6d184e29d
Merge branch 'master' into seatbelt_multirotor
2013-07-17 19:16:49 +04:00
Lorenz Meier
e86e2a0938
Add additional file name options
2013-07-17 07:57:02 +02:00
Julian Oes
bcdedd9a35
Changed location of lots of flags and conditions, needs testing and more work
2013-07-16 18:56:31 +02:00
Lorenz Meier
6e44a486c1
Merged
2013-07-16 18:28:05 +02:00
Julian Oes
76edfa896b
Fixed disarming bug, use flag instead of mode switch
2013-07-16 13:24:02 +02:00
Lorenz Meier
c8aca814ca
Improved comments
2013-07-16 12:46:23 +02:00
Lorenz Meier
6902177b99
Default to 2000 dps for L3GD20
2013-07-16 12:45:43 +02:00
Julian Oes
6dc3fcd1ad
Some more commander cleanup, param update handling code was doubled
2013-07-16 10:05:51 +02:00
Julian Oes
08926019ea
Just some reordering in commander
2013-07-16 09:35:31 +02:00
Julian Oes
3e161049ac
Got rid of useless orb_receive_loop, moved some helper functions
2013-07-16 09:24:21 +02:00
Lorenz Meier
2f76c81147
More compile fixes
2013-07-16 09:08:05 +02:00
Lorenz Meier
ce8e2fd726
Fixed compile error due to bad merge
2013-07-16 09:00:21 +02:00
Lorenz Meier
41b51bdb88
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-16 08:57:40 +02:00
Simon Wilks
1a408431e1
Merge remote-tracking branch 'upstream/master' into hott-esc
2013-07-16 08:14:23 +02:00
Lorenz Meier
1d883ad4c6
Hotfix: Fixed RC calibration
2013-07-16 08:10:38 +02:00
Simon Wilks
7380cebb67
Cleanup comments and make them more consistent between messages.
2013-07-16 08:08:55 +02:00
Julian Oes
1b38cf715d
Renamed actuator_safety back to actuator_armed, compiling but untested
2013-07-15 22:15:15 +02:00
Lorenz Meier
bf2ff98856
Merged master
2013-07-15 15:02:45 +02:00
Lorenz Meier
eb2a9ded69
Only printing value if equal
2013-07-15 14:17:42 +02:00
Lorenz Meier
17338ca61a
Removed unneccesary casts in airspeed calculation to double precision
2013-07-15 13:59:23 +02:00
Lorenz Meier
0b47ed86e0
Implemented new, simple system boot config and sane default value system based on two parameters evaluated at boot time
2013-07-15 13:58:43 +02:00
Anton Babushkin
b174a60515
multirotor_pos_control: PID ontroller derivative mode fixed
2013-07-15 09:11:52 +04:00
px4dev
dca9019f75
Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
2013-07-14 13:04:44 -07:00
px4dev
6cf1208312
Don't build interface drivers we don't have configs for. Make the interface drivers build.
...
Change the way we handle the prom buffer so that we can init the interface before constructing the driver.
2013-07-14 12:42:51 -07:00
px4dev
b11e05d614
Don't build interface drivers we don't have config for.
2013-07-14 12:40:26 -07:00
Lorenz Meier
08ddbbc23e
WIP on MEAS bringup, ETS airspeed sensors should be operational
2013-07-14 21:12:09 +02:00
px4dev
f8f6a43fea
Use common, board-type-agnostic code to allocate the PX4IO interface.
2013-07-14 11:50:35 -07:00
px4dev
5350c2be09
Refactor MS5611 driver to use interface nubs for the I2C and SPI versions of the chip. This reduces the amount of duplicated code.
2013-07-14 11:45:21 -07:00
px4dev
6c7f1e883e
Direct-access device functions return errors directly.
...
Move to using ::init rather than ::probe in keeping with device changes.
2013-07-14 11:44:46 -07:00
px4dev
12b84597d8
Direct access functions return errors directly, not touching errno.
2013-07-14 11:43:43 -07:00
px4dev
7c83e928a5
destructors for I2C and SPI should be virtual.
2013-07-14 11:42:56 -07:00
Lorenz Meier
319eb18ab5
Merged
2013-07-14 11:32:04 +02:00
Lorenz Meier
7fe2aa2797
Fixed last few compile errors, ready for testing
2013-07-14 11:22:20 +02:00
px4dev
28f996b026
rename the px4io serial perf counters so it's clearer what they belong to
2013-07-13 21:34:31 -07:00
px4dev
4f0ae1cdea
Build the px4io interfaces on top of the Device direct-access API.
2013-07-13 21:00:27 -07:00
px4dev
26eb0b9d72
Move the direct-access methods from CDev to Device… makes more sense that way.
2013-07-13 21:00:03 -07:00
px4dev
e67f6a51a3
Make px4io driver filenames less ambiguous.
2013-07-13 20:13:53 -07:00
Simon Wilks
6b631afaef
Reduce the max stack size needed.
2013-07-14 00:04:17 +02:00
Simon Wilks
9aa25c5671
Remove unused code.
2013-07-13 22:18:52 +02:00
Simon Wilks
fa29694f0b
Whitespace cleanup
2013-07-13 01:12:47 +02:00
Simon Wilks
1ccfb623ee
Merge remote-tracking branch 'upstream/master' into hott-esc
2013-07-13 01:08:45 +02:00
Simon Wilks
b500cce31e
Major refactor of HoTT drivers and finished sensor read implementation.
2013-07-13 01:08:06 +02:00
Anton Babushkin
8778230050
multirotor_pos_control fixes, systemlib/pid now accepts limit = 0.0, means no limit
2013-07-12 21:59:49 +04:00
Anton Babushkin
eb5af244b9
sdlog2: GVSP (global velocity setpoint) message added, cleanup
2013-07-12 21:57:46 +04:00
Anton Babushkin
5937c3a31b
uORB topic vehicle_global_velocity_setpoint added
2013-07-12 16:30:11 +04:00
Anton Babushkin
77add4b511
Merge branch 'master' into seatbelt_multirotor
2013-07-12 13:23:31 +04:00
Anton Babushkin
d4c6ebde33
multirotor_pos_control: global_position_setpoint support in AUTO mode
2013-07-12 13:17:42 +04:00
Lorenz Meier
3b9c306d64
Hotfix for relative altitude waypoints
2013-07-12 11:11:26 +02:00
px4dev
c459901f26
Let's have some direct-access I/O methods as well.
2013-07-11 23:52:36 -07:00
px4dev
16cb0a793d
Some more v2 pin / gpio configs missed in the previous commit
2013-07-11 23:23:10 -07:00
Anton Babushkin
babbcea3b6
Merge branch 'sdlog2_GPSP' into seatbelt_multirotor
2013-07-12 10:11:08 +04:00
Anton Babushkin
1d986d6c04
sdlog2: Global Position Set Point message added, vehicle_global_position_setpoint topic fixed
2013-07-12 10:09:38 +04:00
Anton Babushkin
c51c211bba
position_estimator_inav: global position altitude fixed
2013-07-12 08:45:49 +04:00
Lorenz Meier
f6b45ac2e1
Merge branch 'master' of github.com:PX4/Firmware
2013-07-11 23:25:19 +02:00
Lorenz Meier
28f536dc44
Hotfix: fixed compile warnings
2013-07-11 23:25:08 +02:00
Anton Babushkin
c291c4482a
Merge branch 'master' into seatbelt_multirotor
2013-07-11 20:49:28 +04:00
Lorenz Meier
3ac760978f
Merge pull request #331 from jean-m-cyr/master
...
Don't leave RX in bind mode if console open fails
2013-07-11 08:21:48 -07:00
Jean Cyr
39b3fc8d32
Don't leave RX in bind mode on console open fail
...
Don't leave RX in bind mode in the unlikely eventuality that console
open fails
2013-07-11 10:36:17 -04:00
Anton Babushkin
0ccf50bca3
ubx: SVINFO parsing optimized and message rate increased, CPU consumption reduced in 6 times, ~0.3% now.
2013-07-11 18:17:36 +04:00
Anton Babushkin
4685871c83
Major ubx driver cleanup: few pages of code removed, send update only when full navigation solution received
2013-07-11 15:28:56 +04:00
px4dev
f5b91e109d
More GPIO and general pin assignment fixes.
2013-07-10 23:50:37 -07:00
Lorenz Meier
3a76162b08
Merge pull request #317 from DrTon/arm_safe_fix
...
Arm/disarm and SAS modes order safety fixes
2013-07-10 22:53:45 -07:00
Lorenz Meier
290ca1f9bf
Reworked airspeed driver to keep most of it abstract
2013-07-10 21:45:59 +02:00
Lorenz Meier
f87595a056
Minor initialization / formatting change
2013-07-10 20:59:35 +02:00
Lorenz Meier
dc600e7d65
First stab at IOCTL driven offset handling (in PA) for all airspeed sensors. Untested
2013-07-10 20:58:47 +02:00
Lorenz Meier
f27491d2e5
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-07-10 11:58:48 +02:00
Jean Cyr
897b541b12
General cleanup of /dev/px4io and /dev/px4fmu
...
- Use distinct common symbols for px4io and px4fmu device files, and use
instead of hardcoded filenames
- Use common symbols defining px4io bits consistently between px4fmu and
px4io builds.
2013-07-09 20:37:00 -04:00
unknown
328f4f8c87
Merge remote-tracking branch 'upstream/master'
2013-07-09 20:14:34 -04:00
Lorenz Meier
71ca3ec449
Merged GPS info fixes from pigeonhunter
2013-07-09 23:16:53 +02:00
unknown
c264267814
Merge remote-tracking branch 'upstream/master'
2013-07-09 17:10:49 -04:00
Lorenz Meier
c3d07030dd
Minor additions to fix, pushing
2013-07-09 22:56:02 +02:00
Lorenz Meier
6cbbb9b99f
Hotfix for GPS driver
2013-07-09 22:46:24 +02:00
Lorenz Meier
e3bb9e87e2
Hotfix for GPS: Disable unknown message classes
2013-07-09 17:36:48 +02:00
Lorenz Meier
9910a5ef5f
Merge branch 'top' of https://github.com/a-ha/Firmware into top
2013-07-09 13:36:38 +02:00
Lorenz Meier
33c7c2c32e
Merge branch 'master' of github.com:PX4/Firmware
2013-07-09 13:34:12 +02:00
Lorenz Meier
82c13efad1
Merged CPU load changes by freddie chopin
2013-07-09 13:27:17 +02:00
Lorenz Meier
9c6cca8b9b
Merge pull request #310 from PX4/att_fix
...
fixed attitude estimator params
2013-07-09 04:11:38 -07:00
Anton Babushkin
04fbed493a
multirotor_pos_control: use separate PID controllers for position and velocity
2013-07-09 14:09:48 +04:00
Lorenz Meier
d63730419b
Merge branch 'mpu6000_set_sample_rate' of https://github.com/fibr/Firmware into mpu_rate
2013-07-09 11:16:42 +02:00
Darryl Taylor
2990a7384b
Merge branch 'master' of https://github.com/PX4/Firmware into gps_fix
2013-07-09 17:09:59 +08:00
Lorenz Meier
bbe6615884
Merge pull request #324 from DrTon/gpio_led_io_relay
...
gpio_led: PX4IO RELAY and ACC outputs support
2013-07-09 02:09:30 -07:00
Darryl Taylor
dc2ef7b3c6
Some cleanup of NAV_SVINFO message handler
2013-07-09 17:07:11 +08:00
Darryl Taylor
6dff71668d
Merge branch 'master' into gps_fix
2013-07-09 14:49:58 +08:00
Darryl Taylor
d878d4756c
Ammended UBlox driver to record SV Info, satelites_visible == satelites used. Info is recorded for all SVs, used or not. Might be useful for GPS debugging.
2013-07-09 14:25:47 +08:00
Simon Wilks
a18c6cea18
Merge remote-tracking branch 'upstream/master' into hott-esc
2013-07-09 08:04:07 +02:00
unknown
a9b327b1fe
Merge remote-tracking branch 'upstream/master'
2013-07-08 17:13:41 -04:00
Lorenz Meier
ced2871263
Merged mkblctrl
2013-07-08 20:48:30 +02:00
Lorenz Meier
2a1bf3018b
Hotfix: Changed all left-over task_spawn() to task_spawn_cmd()
2013-07-08 15:26:25 +02:00
Lorenz Meier
6436e2e350
Updated mavlink_onboard as well (Hotfix)
2013-07-08 14:43:27 +02:00
Lorenz Meier
040b8f3802
Cleaned up MAVLink include hierarchy
2013-07-08 14:16:46 +02:00
Julian Oes
88389ea255
Merge branch 'master' into new_state_machine
...
compiling again
Conflicts:
src/modules/fixedwing_att_control/fixedwing_att_control_att.c
src/modules/fixedwing_att_control/fixedwing_att_control_rate.c
src/modules/fixedwing_pos_control/fixedwing_pos_control_main.c
src/modules/mavlink/orb_listener.c
src/modules/multirotor_att_control/multirotor_attitude_control.c
src/modules/multirotor_att_control/multirotor_rate_control.c
src/modules/systemlib/pid/pid.c
src/modules/systemlib/pid/pid.h
src/modules/uORB/objects_common.cpp
2013-07-08 10:31:32 +02:00
Anton Babushkin
320a5b7579
Merge branch 'master' into seatbelt_multirotor
2013-07-08 12:18:32 +04:00
px4dev
e2458677c9
Tweak IO serial packet error handling slightly; on reception of a serial error send a line break back to FMU. This should cause FMU to stop sending immediately.
...
Flag these cases and discard the packet rather than processing it, rather than simply dropping the received packet and letting FMU time out.
2013-07-07 20:42:03 -07:00
px4dev
0efb1d6ceb
Fix the px4io serial port device name now that we're not using UART8 as the console.
2013-07-07 18:50:04 -07:00
px4dev
b4029dd824
Pull v2 pieces up to build with the merge
2013-07-07 17:53:55 -07:00
Jean Cyr
20103f572f
Minor px4io optimization
...
Since this module creates the PX4IO object and that the IOCTL function
doesn't use the file descriptor parameter, there is no need to invoke
IOCTL via the filesystem since we can call it directly.
2013-07-07 20:19:27 -04:00
Jean Cyr
dab652faf6
Prevent RELAY1 control via IOCTL if DSM bind feature is enabled
2013-07-07 19:04:30 -04:00
px4dev
43f1843cc7
Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
2013-07-07 12:22:56 -07:00
Jean Cyr
35711280df
Merge remote-tracking branch 'upstream/master'
2013-07-07 14:29:30 -04:00
Lorenz Meier
cf2dbdf9a1
Merge pull request #320 from PX4/integration
...
NuttX integration merge
2013-07-07 10:59:43 -07:00
marco
c4dfc345a1
Version from esc_status topic added to sdlog2
2013-07-07 18:27:08 +02:00
Jean Cyr
7a6a786708
Merge remote-tracking branch 'upstream/master'
2013-07-07 09:12:42 -04:00
px4dev
8fa226c909
Tweak protocol register assignments and add new registers to accommodate differences in IOv2.
2013-07-06 23:59:35 -07:00
Simon Wilks
2b41e1a23b
Merge remote-tracking branch 'upstream/master' into airspeed
2013-07-07 01:11:10 +02:00
Simon Wilks
01255a4cec
Remove the <15kmh cuttoff and report kmh via HoTT.
2013-07-07 01:10:47 +02:00
px4dev
a65a1237f0
Optimise the RC input fetch for <= 9ch transmitters; this eliminates one read per cycle from IO in the common case.
2013-07-06 12:29:14 -07:00
px4dev
17f9c7d15c
Crank up the test speed for 'px4io iftest 1'
2013-07-06 12:28:01 -07:00
px4dev
4d400aa7e7
Enable UART error handling on PX4IO.
2013-07-06 12:27:37 -07:00
Anton Babushkin
369e6d1eea
gpio_led: minor usage fix
2013-07-06 18:37:02 +04:00
Anton Babushkin
8d0784af61
gpio_led: PX4IO RELAY and ACC outputs support, some fixes
2013-07-06 18:30:09 +04:00
Simon Wilks
86adaeb3e8
More cleanups
2013-07-06 15:02:34 +02:00
px4dev
87a4f1507a
Move the common definitions for the PX4IO serial protocol into the shared header.
2013-07-06 00:16:37 -07:00
px4dev
19b2e1de85
Copy the correct number of bytes back for register read operations. Basic PX4IO comms are working now.
2013-07-06 00:00:44 -07:00
px4dev
0589346ce6
Abort the px4io worker task if subscribing to the required ORB topics fails.
2013-07-06 00:00:10 -07:00
px4dev
a4b0e3ecbe
Add retry-on-error for non-protocol errors.
...
Add more performance counters; run test #1 faster.
2013-07-05 22:54:44 -07:00
px4dev
6871d2909b
Add a mechanism for cancelling begin/end perf counters.
2013-07-05 22:53:57 -07:00
px4dev
3c8c596ac7
Enable handling for short-packet reception on FMU using the line-idle interrupt from the UART. Enable short packets at both ends.
2013-07-05 20:37:05 -07:00
px4dev
bcfb713fe9
Enable handling for short-packet reception on IO using the line-idle interrupt from the UART.
2013-07-05 20:35:55 -07:00
px4dev
f9a85ac7e6
Remove the TX completion callback on the IO side.
...
Report CRC, read and protocol errors.
2013-07-05 19:16:25 -07:00
px4dev
87c3d1a8c1
More link performance counters.
2013-07-05 19:03:08 -07:00
px4dev
10e673aa4b
Send error response if register write fails.
2013-07-05 19:02:42 -07:00
px4dev
46a4a44321
Be more consistent with the packet format definition.
...
Free perf counters in ~PX4IO_serial
2013-07-05 18:36:00 -07:00
Jean Cyr
3f9f2018e2
Support binding DSM2 and DSMX satellite receivers
...
The px4io bind command allows you to put a DSM satellite receiver into
bind mode. Since this feature requires that
the dsm VCC line (red wire) be cut and routed through relay one, it is
not enabled by default in order not to
affect those not using a DSM satellite receiver or wising to use relay
one for other purposes.
NOTE: Binding DSM2 satellites in 11-bit mode is not supported due to
potential bug in some DSM2 receiver streams
when in 11-bit mode. Furthermore the px4io software folds 11 bit data
down to 10 bits so there is no resolution
advantage to to 11-bit mode.
To enable the feature the RC_RL1_DSM_VCC parameter must be set to a non
zero value from the console, or using
QGroundControl:
param set RC_RL1_DSM_VCC 1
From the console you can initiate DSM bind mode with:
uorb start
param set RC_RL1_DSM_VCC 1
px4io start
px4io bind dsm2
For binding a DSMX satellite to a DSMX transmitter you would instead
use:
px4io bind dsmx
Your receiver module should start a rapid flash and you can follow the
normal binding sequence of your
transmitter.
Note: The value of parameter RC_RL1_DSM_VCC defaults to 0, so none of
this will have any effect on an unmodified
DSM receiver connection. For this feature to work, the power wire (red)
must be cut and each side connected to a
terminal on relay1 of the px4io board.
This has been tested using Spektrum as well as Hobby King 'Orange' DSM
satellite receivers.
Both px4fmu and px4io images are updated.
2013-07-05 20:51:29 -04:00
px4dev
6c5a15da9b
Eliminate the TD DMA callback; we don't need to know that it's completed.
...
Fix abort behaviour on timeouts, now we don't wedge after the first one.
2013-07-05 17:39:28 -07:00
px4dev
50cae347b4
Check packet CRCs and count errors; don't reject packets yet.
2013-07-05 17:13:54 -07:00
px4dev
5a8f874166
Add an 8-bit CRC to each transmitted packet.
2013-07-05 16:56:47 -07:00
px4dev
313231566c
Encode the packet type and result in the unused high bits of the word count.
2013-07-05 16:41:27 -07:00
px4dev
e55a37697d
Always send and expect a reply for every message.
2013-07-05 16:34:44 -07:00
px4dev
d83323d4a2
Use the NuttX built-in crc32, it works fine.
2013-07-05 16:18:55 -07:00
Lorenz Meier
422c675c55
Commented flow example slightly better
2013-07-05 11:44:25 +02:00
Lorenz Meier
5f2d35d715
Added gyro scaling as parameter
2013-07-05 11:44:10 +02:00
Lorenz Meier
7ca0698a6b
Fixed HIL handling
2013-07-05 11:43:42 +02:00
Lorenz Meier
2cfe9ee1b4
Improved limits handling
2013-07-05 11:43:16 +02:00
px4dev
83213c66df
Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets us back into sync.
2013-07-04 23:22:59 -07:00
px4dev
94b638d848
One more piece of paranoia when resetting DMA
2013-07-04 23:19:24 -07:00
px4dev
43210413a9
More test work on the px4io side of the serial interface.
2013-07-04 23:17:55 -07:00
px4dev
52096f017f
Switch to the 'normal' way of doing register accessors.
...
Be more aggressive en/disabling DMA in the UART, since ST say you should.
2013-07-04 23:17:16 -07:00
px4dev
c21237667b
iov2 pin definition cleanup sweep
2013-07-04 23:16:13 -07:00
px4dev
2e001aad04
Add PX4IOv2 support to the uploader.
2013-07-04 12:50:59 -07:00
px4dev
f2079ae7ff
Add DMA error handling.
...
Add serial error handling.
Add short-packet-reception handling (this may allow us to send/receive shorter packets… needs testing).
2013-07-04 11:21:25 -07:00
Lorenz Meier
05d6815401
Improved return statement of sensors app
2013-07-04 15:49:13 +02:00
Lorenz Meier
cefebb9699
Small improvements in system lib
2013-07-04 15:48:01 +02:00
Lorenz Meier
d72e9929aa
Fixes to fixed wing control example, fixes to the way the control lib publishes estimates
2013-07-04 15:46:53 +02:00
Lorenz Meier
b01673d1d8
Fixes to estimator and HIL startup script
2013-07-04 15:45:32 +02:00
Lorenz Meier
f42b3ecd96
Substantial improvements to math lib
2013-07-04 15:43:38 +02:00
Lorenz Meier
3686431231
Removed leftover mavlink_receiver.c file
2013-07-04 15:41:42 +02:00
Lorenz Meier
9aee419324
Updated mavlink version, massive improvements in mission lib, fixes to HIL (state and sensor level)
2013-07-04 15:40:20 +02:00
Lorenz Meier
5691c64ff0
Update to uORB topics, added / improved position triplet, added radio status
2013-07-04 15:39:29 +02:00
Simon Wilks
49aca1ae5b
Add in missing files.
2013-07-04 08:50:34 +02:00
px4dev
7255c02c20
Add a test hook for the PX4IO interface. Wire up some simple tests for the serial interface.
...
Signal quality looks good at 1.5Mbps. Transmit timing is ~450µs per packet, ~20µs packet-to-packet delay spinning in a loop transmitting.
2013-07-03 23:41:40 -07:00
Simon Wilks
6d2f14e125
Refactoring of the hott telemetry driver and added functionality to read from a HoTT sensor.
2013-07-04 08:33:19 +02:00
px4dev
03a15bfdc5
Fix argument parsing in the rgbled command.
2013-07-03 22:23:01 -07:00
px4dev
be6ad7af3b
Rework the FMU<->IO connection to use a simple fixed-size DMA packet; this should let us reduce overall latency and bump the bitrate up.
...
Will still require some tuning.
2013-07-03 00:08:12 -07:00
Lorenz Meier
3eb115c821
Merge pull request #7 from skelly/l3gd20h_support
...
Enabled MS5611, nsh on USB by default.
2013-07-02 11:06:53 -07:00
marco
209dc7100e
mkclctrl 8/11Bit support, uOrb Topic added, ESC Topic to Sdlog2 added
2013-07-02 19:46:15 +02:00
Lorenz Meier
e9290e7fc0
Merge branch 'master' of github.com:PX4/Firmware into origin_integration
2013-07-02 16:40:26 +02:00
sjwilks
697c0a1a1d
Merge pull request #314 from DrTon/att_control_der_fix
...
Multirotor attitude controller updated
2013-07-02 01:19:14 -07:00
Anton Babushkin
843fb2d371
position_estimator_inav init bugs fixed
2013-07-01 09:29:06 +04:00
Anton Babushkin
f6b0a27295
Merge branch 'master' into seatbelt_multirotor
2013-06-30 23:36:42 +04:00
sjwilks
4edb6ce76b
Merge pull request #319 from PX4/kalman_nav
...
Kalman navigation fixes
2013-06-30 11:58:38 -07:00
Lorenz Meier
d51b97fe2f
Merge branch 'master' of github.com:PX4/Firmware into integration
2013-06-30 19:47:12 +02:00
Lorenz Meier
aa04701c89
Added global position to logging
2013-06-30 19:15:02 +02:00
Lorenz Meier
7d59ee6839
Fixed yaw estimate, minor comment and code style improvements. Added option for upfront init, prepared process for removal (later) of sensors app and subscription to individual topics. Prototyping rework of params / subscriptions to resolve GCC 4.7 incompatibility of control lib (or rather the fact that we need to work around something which looks like a compiler bug)
2013-06-30 00:38:01 +02:00
Anton Babushkin
aeb3637209
Merge branch 'arm_safe_fix' into seatbelt_multirotor
2013-06-29 21:01:20 +04:00
Anton Babushkin
2f1de6621b
More strict conditions for arm/disarm
2013-06-29 20:49:54 +04:00
Anton Babushkin
d3eb86d0ea
Publish manual_sas_mode immediately, SAS modes switch order changed to more safe
2013-06-29 20:43:44 +04:00
px4dev
d1562f926f
More implementation for the serial side on IO; fix a couple of bugs on the FMU side.
...
Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
2013-06-28 23:39:35 -07:00
Anton Babushkin
7dfaed3ee7
multirotor_pos_control: new ground level -> altitude setpoint correction fixed
2013-06-28 23:35:48 +04:00
Anton Babushkin
a29e3b5a94
Merge commit '91e1680c1bb45bceb1d1dd675782111713f76a8a' into seatbelt_multirotor
2013-06-28 19:40:19 +04:00
Anton Babushkin
8e732fc527
position_estimator_inav default parameters changed, some fixes
2013-06-28 12:58:12 +04:00
Anton Babushkin
7b73df6440
Merge branch 'att_control_der_fix' into seatbelt_multirotor
2013-06-28 11:11:26 +04:00
Anton Babushkin
1759f30e3a
Sonar added to position_estimator_inav
2013-06-28 11:10:46 +04:00
Anton Babushkin
665a9b8865
Merge commit '8191130bbc8f2cbd53e69a7bcd1a4d4b1b2d68bb' into seatbelt_multirotor
2013-06-28 11:09:21 +04:00
Simon Wilks
dadd8703b4
Initial non-tested code for reading from the ESC.
2013-06-28 08:42:05 +02:00
Julian Oes
76346bfe19
Corrected merge mistake
2013-06-27 20:20:27 +02:00
Julian Oes
f052442c2b
Merge remote-tracking branch 'upstream/master' into new_state_machine
...
Conflicts:
src/modules/sdlog2/sdlog2.c
src/modules/sdlog2/sdlog2_messages.h
2013-06-27 09:23:11 +02:00