Commit Graph

1599 Commits

Author SHA1 Message Date
Lorenz Meier d5c857615b Pure formatting cleanup of drv_hrt.c, no code / functionality changes 2013-12-27 12:14:15 +01:00
Lorenz Meier db46672bc4 Paranoid PPM shape checking 2013-12-27 12:02:57 +01:00
Lorenz Meier 8d2950561d Changed RSSI range to 0..255 2013-12-25 15:15:15 +01:00
Lorenz Meier edffade8ce Added PPM frame length feedback in IO comms and status command - allows to warn users about badly formatted PPM frames 2013-12-25 15:11:48 +01:00
Lorenz Meier a502332992 Greatly robustified PPM parsing, needs cross-checking with receiver models 2013-12-25 15:11:05 +01:00
Thomas Gubler c191597625 HIL: only listen to first 8 actuator outputs 2013-12-24 15:15:39 +01:00
Lorenz Meier 107bb54b33 Robustifiying PPM parsing 2013-12-23 20:38:09 +01:00
Lorenz Meier 64ad3d7e0a Added channel count to log format 2013-12-23 18:44:07 +01:00
Lorenz Meier f617689094 Merge branch 'master' of github.com:PX4/Firmware into control_groups 2013-12-22 21:13:11 +01:00
Lorenz Meier 1279b5fbf3 Merge pull request #556 from PX4/ppm_parsing
PPM channel count detection is now using a more paranoid approach.
2013-12-22 12:13:02 -08:00
Lorenz Meier f8134c9c67 Enable 18 channels on IO 2013-12-22 21:12:31 +01:00
Lorenz Meier 9abf31c2ba Support 18 channels correctly on FMU 2013-12-22 21:09:47 +01:00
Lorenz Meier 6c990d0a6e Fix usage of wrong constant for RC input channels 2013-12-22 20:44:51 +01:00
Lorenz Meier 999051546a Fixed compile error 2013-12-21 19:08:52 +01:00
Lorenz Meier b84c9f962b Merged master 2013-12-21 19:07:24 +01:00
Lorenz Meier 831f153b73 Add tight RC test 2013-12-21 16:37:45 +01:00
Lorenz Meier b2e527ffa6 Counting channel count changes 2013-12-21 16:13:04 +01:00
Lorenz Meier 3e037d40de Fixed bracketing error 2013-12-21 12:46:06 +01:00
Lorenz Meier 0f0dc5ba06 Allowed custom battery scaling on IO 2013-12-21 12:45:04 +01:00
Lorenz Meier f174ca3ce5 Added average as direct output 2013-12-20 21:52:10 +01:00
Lorenz Meier 3ad9dd030c Added performance counter for write IOCTL 2013-12-20 21:10:33 +01:00
Lorenz Meier 8c518aa237 Useful bits for high-rate logging 2013-12-20 14:25:35 +01:00
Lorenz Meier 9476ba522f PPM channel count detection is now using a more paranoid approach. 2013-12-20 08:48:51 +01:00
Lorenz Meier 6dce57170e Hotfix: Fixed mapping of override channel 2013-12-19 17:12:46 +01:00
Lorenz Meier b9a533acae Merge pull request #505 from PX4/rc_failsafe
Futaba RC failsafe support
2013-12-19 07:41:25 -08:00
Andrew Tridgell bccf65cc28 mpu6000: disable interrupts during initial reset
this seems to avoid a problem where the mpu6000 doesn't startup
correctly if other devices are transferring at the same time.
2013-12-16 15:06:45 +01:00
Lorenz Meier d53b00283e PX4IO upgrade improvement 2013-12-16 12:02:01 +01:00
Lorenz Meier f4ac204f46 Cranking up bus speeds for all sensors to achievable 10.4 MHz, will cut the bus lock time to half 2013-12-15 18:32:46 +01:00
Lorenz Meier d6a6d59d2d Further improved S.Bus scaling 2013-12-14 15:09:20 +01:00
Lorenz Meier ea10d55d71 Auto-update of IO firmware, shorter preflight check alarm 2013-12-14 15:08:56 +01:00
Lorenz Meier 10b2dc67e4 Allow forceupdate in all conditions 2013-12-14 14:54:02 +01:00
Lorenz Meier 00dc339d2e Improved S.Bus scaling based on scope measurements 2013-12-14 14:52:57 +01:00
Lorenz Meier 9883a346a0 First stab at implementing better RSSI based connection status estimation, still needs some work and testing 2013-12-13 18:01:55 +01:00
Holger Steinhaus L a673fa3926 Non-destructive handling of failsafe signals, distinction between frame loss and signal loss.
This kind of handling might be moved upstream into the application, once alarms are propagated by the ORB system.

This change is compatible with RX failsafe settings, but does not rely on it (uses SBus flags instead).
2013-12-13 17:30:26 +01:00
Holger Steinhaus L 3a40ea8338 more precise range conversion for SBus input signals 2013-12-13 17:30:14 +01:00
Lorenz Meier 0b9b68f0d9 Merge pull request #535 from NosDE/master
Device renamed, custom device on parameter switch
2013-12-13 08:10:57 -08:00
Lorenz Meier 3e708f881e Merge pull request #538 from thomasgubler/commander_localpos
update the commander to only use local pos for landing detection when on...
2013-12-13 08:10:42 -08:00
Lorenz Meier 39dcda3996 Merge pull request #541 from limhyon/master
SO(3) estimator has been debugged and cleaned.
2013-12-13 08:10:18 -08:00
Lorenz Meier 0b58c01dcc Merge pull request #534 from thomasgubler/tecs_fix_comparison
tecs: fix wrong != 0 check
2013-12-13 08:09:36 -08:00
Lorenz Meier 96997697e5 Merge pull request #536 from limhyon/patch-1
Update fw_att_control_params.c
2013-12-13 08:09:18 -08:00
Lorenz Meier a91a8aeea8 Merge pull request #542 from PX4/hil_fixes
Various HIL-related fixes
2013-12-13 07:54:13 -08:00
Lorenz Meier 017a85df06 Merge pull request #545 from PX4/mavlink_fixes
Mavlink fixes
2013-12-13 07:53:28 -08:00
Lorenz Meier c311462f3c Added actuator control removal 2013-12-13 16:52:35 +01:00
Andrew Tridgell 5b7d1af5d8 Merged crccheck command 2013-12-13 11:22:14 +01:00
Andrew Tridgell 6016fbe55d Merged PX4IO crc checks and force update 2013-12-13 11:21:00 +01:00
Andrew Tridgell 8f90efa312 l3gd20: print more perf counters and make DRDY usage clearer 2013-12-13 11:19:18 +01:00
Andrew Tridgell e808e015dd LowPassFilter: allow for filtering to be disabled
using bandwidth of 0 gives no filtering
2013-12-13 11:19:08 +01:00
Andrew Tridgell 17502cbde4 l3gd20: fixed a warning 2013-12-13 11:18:59 +01:00
Thomas Gubler c033443208 px4iofirmware: improve check for rc controlled channels in manual mode 2013-12-11 16:58:11 +01:00
Thomas Gubler b69097df38 px4io frimware: improve handling of manual mode when fmu is still healthy, use data from fmu for channels which are not controlled by rc 2013-12-11 16:58:03 +01:00
Lorenz Meier 1a1570d902 Merged all of the LSM303D debug changes 2013-12-10 12:09:03 +01:00
Andrew Tridgell cf78440ee6 drv_hrt: added note on why an uninitialised hrt_call is safe 2013-12-10 12:07:03 +01:00
Andrew Tridgell d43e3394b0 l3gd20: added rescheduling and error checking 2013-12-10 12:06:56 +01:00
Andrew Tridgell 91870953d9 mpu6000: treat all zero data from mpu6k as bad 2013-12-10 12:06:48 +01:00
Andrew Tridgell 96881d8810 ms5611: check for all zero in the prom
when SPI CLK fails we get all zero data
2013-12-10 12:06:41 +01:00
Andrew Tridgell f0d84d4826 mpu6000: close fds before exit 2013-12-10 12:06:34 +01:00
Andrew Tridgell acd0a70dca lsm303d: close fds before exit 2013-12-10 12:06:25 +01:00
Andrew Tridgell 09ece4306e l3gd20: close fds before exit 2013-12-10 12:06:18 +01:00
Andrew Tridgell 1fc122562c mpu6000: use register_class_devname() 2013-12-10 12:06:11 +01:00
Andrew Tridgell 02e7f7fa85 lsm303d: use register_class_devname() 2013-12-10 12:06:02 +01:00
Andrew Tridgell 1d5f0a1433 l3gd20: use register_class_devname() 2013-12-10 12:05:55 +01:00
Andrew Tridgell c5097a6561 hmc5883: use register_class_devname() 2013-12-10 12:05:42 +01:00
Andrew Tridgell 6145e69fc6 device: added register_class_devname() API
this allows drivers to register generic device names for a device
class, with automatic class instance handling
2013-12-10 12:05:36 +01:00
Andrew Tridgell f24479c27a lsm303d: dump I2C control registers in regdump 2013-12-10 12:05:29 +01:00
Lorenz Meier 1fb406ba09 Add also default descriptor for alternate sensors 2013-12-10 12:05:21 +01:00
Lorenz Meier 3d27dd7246 Made all usual suspects default to their custom names and only register the default name if its not already taken by someone else 2013-12-10 12:05:14 +01:00
Andrew Tridgell 0456ee2364 ms5611: give cleaner SPI traces
this makes logic traces cleaner by zeroing extra bytes written
2013-12-10 12:05:07 +01:00
Andrew Tridgell bc6ddb971f ms5611: removed unused variable 2013-12-10 12:05:00 +01:00
Andrew Tridgell 7e30941475 ms5611: change bus speed to 5MHz
this gives 5MHz SPI bus speed (by asking for 6MHz due to timer
granularity).

Tests with a logic analyser show that the ms5611 is actually more
reliable at 5MHz than lower speeds
2013-12-10 12:04:52 +01:00
Andrew Tridgell 30ff61fa90 lsm303d: use DRDY pins to automatically reschedule measurements
this prevents double reads of sensor data, and missing samples from
the accel
2013-12-10 12:04:46 +01:00
Andrew Tridgell 0e97c288bb px4fmu2: enable SPI sensor DRDY pins 2013-12-10 12:04:39 +01:00
Andrew Tridgell 4956feffdf drv_hrt: added hrt_call_init() and hrt_call_delay() APIs
hrt_call_init() can be used to initialise (zero) a hrt_call structure
to ensure safe usage. The hrt_call_every() interface calls this
automatically.

hrt_call_delay() can be used to delay a current callout by the given
number of microseconds
2013-12-10 12:04:26 +01:00
Andrew Tridgell 513d014f03 l3gd20: added retries to disable_i2c() 2013-12-10 12:04:20 +01:00
Andrew Tridgell 24a243843e lsm303d/l3gd20: change filters to 50Hz analog on-chip filters
after discussion with Leonard these analog on-chip filters should be
at 50Hz
2013-12-10 12:04:13 +01:00
Andrew Tridgell 0a83772c0d l3gd20: use highest possible on-chip filter bandwidth
this allows the software filter to do its job properly
2013-12-10 12:04:05 +01:00
Andrew Tridgell f0e50fc87a lsm303d: init filter to 773 Hz 2013-12-10 12:03:58 +01:00
Andrew Tridgell 2de588e861 lsm303d: changed tones for accel fail to 3 tones
distinct tones for init fail, post-boot fail and recovery
2013-12-10 12:00:55 +01:00
Andrew Tridgell c46ab017e1 lsm303d: make log distinctive with i2c disable included 2013-12-10 12:00:46 +01:00
Andrew Tridgell 51a1ad48c5 FMUv2: don't config ADC pins that are now used for MPU6k CS and other uses 2013-12-10 12:00:36 +01:00
Andrew Tridgell aeba9e5c1e FMUv2: change CS pins to 2MHz
this gives cleaner traces
2013-12-10 12:00:27 +01:00
Andrew Tridgell 032c450d15 lsm303d: cleanup logic traces by pre-zeroing all transfers 2013-12-10 12:00:17 +01:00
Andrew Tridgell a2b31118cb lsm303d: get cleaner logic traces by gathering all regs more regularly 2013-12-10 12:00:08 +01:00
Andrew Tridgell 7c9d92a5d6 lsm303d: added I2C disable based on method from ST engineering support 2013-12-10 12:00:02 +01:00
Andrew Tridgell 9a169d8ef4 l3gd20: added I2C disable based on method from ST engineering support 2013-12-10 11:59:54 +01:00
Andrew Tridgell 44b2543d2d FMUv2: set MPU6000 CS as initially de-selected 2013-12-10 11:59:48 +01:00
Andrew Tridgell 3ce14497a1 FMUv2: added define for MPU DRDY pin 2013-12-10 11:59:29 +01:00
Andrew Tridgell b927974a97 FMUv2: added support for MPU6000 on v2.4 board 2013-12-10 11:59:23 +01:00
Andrew Tridgell fe4b95f9d5 lsm303d: zero-fill register reads 2013-12-10 11:59:13 +01:00
Andrew Tridgell ea33a19c8f lsm303d: show regs at both high and low bus speed on error 2013-12-10 11:59:06 +01:00
Andrew Tridgell 4ce4b8a174 lsm303d: always log first ARB and REG values 2013-12-10 11:59:00 +01:00
Andrew Tridgell 5ef91d694b lsm303d: log mag regs too 2013-12-10 11:58:53 +01:00
Andrew Tridgell 671447ce2c lsm303d: fixed TEMP_H register define 2013-12-10 11:58:45 +01:00
Andrew Tridgell cdaafff6e4 lsm303d: added detailed logging of accels on extremes
this will log accel values and registers to /fs/microsd/lsm303d.log if
any extreme values are seen
2013-12-10 11:58:39 +01:00
Andrew Tridgell 50d5241985 px4io: moved blue heartbeat LED to main loop
this allows us to tell if the main loop is running by looking for a
blinking blue LED
2013-12-10 11:58:29 +01:00
Andrew Tridgell 97af3d2204 mpu6000: change bus speed based on registers being accessed
this ensures we follow the datasheet requirement of 1MHz for general
registers and up to 20MHz for sensor and int status registers
2013-12-10 11:58:21 +01:00
Andrew Tridgell 8df4d636ab SPI: added set_frequency() API
this allows the bus speed to be changed on the fly by device
drivers. This is needed for the MPU6000
2013-12-10 11:58:15 +01:00
Andrew Tridgell 415417196b lsm303d: print more registers in "lsm303d regdump" 2013-12-10 11:58:08 +01:00
Andrew Tridgell af049f7cf8 lsm303d: define some more register addresses 2013-12-10 11:58:01 +01:00
Andrew Tridgell 93f3398dfe lsm303d: added 'lsm303d regdump' command
useful for diagnosing issues
2013-12-10 11:57:54 +01:00
Andrew Tridgell 1b1aa0edea lsm303d: use DRDY pins to automatically reschedule measurements
this prevents double reads of sensor data, and missing samples from
the accel
2013-12-10 11:48:44 +01:00
Andrew Tridgell b3f4b0a240 drv_hrt: added note on why an uninitialised hrt_call is safe 2013-12-10 11:40:51 +01:00
Andrew Tridgell 893d66d961 l3gd20: added rescheduling and error checking 2013-12-10 11:40:06 +01:00
Andrew Tridgell 2b491a7954 mpu6000: treat all zero data from mpu6k as bad 2013-12-10 11:39:50 +01:00
Andrew Tridgell 8744aa7536 ms5611: check for all zero in the prom
when SPI CLK fails we get all zero data
2013-12-10 11:39:28 +01:00
Andrew Tridgell 39b40e41c2 mpu6000: close fds before exit 2013-12-10 11:39:20 +01:00
Andrew Tridgell 038ec194ae lsm303d: close fds before exit 2013-12-10 11:39:14 +01:00
Andrew Tridgell 1bac7e7f8b l3gd20: close fds before exit 2013-12-10 11:39:07 +01:00
Andrew Tridgell b55403c551 mpu6000: use register_class_devname() 2013-12-10 11:38:30 +01:00
Andrew Tridgell e334377e6c lsm303d: use register_class_devname() 2013-12-10 11:38:23 +01:00
Andrew Tridgell 5a88dc02a7 l3gd20: use register_class_devname() 2013-12-10 11:38:10 +01:00
Andrew Tridgell 5ee41bc083 hmc5883: use register_class_devname() 2013-12-10 11:37:59 +01:00
Lorenz Meier eed5b99a4a Merge branch 'redundant_sensors' of github.com:PX4/Firmware 2013-12-10 11:37:25 +01:00
Andrew Tridgell b2b9665e44 device: added register_class_devname() API
this allows drivers to register generic device names for a device
class, with automatic class instance handling
2013-12-10 11:31:04 +01:00
Andrew Tridgell 895dc3a2bb lsm303d: dump I2C control registers in regdump 2013-12-10 11:30:53 +01:00
Andrew Tridgell 0349937a82 lsm303d: added detailed logging of accels on extremes
this will log accel values and registers to /fs/microsd/lsm303d.log if
any extreme values are seen
2013-12-10 11:30:01 +01:00
Lorenz Meier bc8cfc8d9d Fix indendation in airspeed driver (no functional change) 2013-12-10 11:21:45 +01:00
Andrew Tridgell 70e56a3d54 px4fmu2: enable SPI sensor DRDY pins 2013-12-10 11:03:43 +01:00
Andrew Tridgell 53f2dc8296 drv_hrt: added hrt_call_init() and hrt_call_delay() APIs
hrt_call_init() can be used to initialise (zero) a hrt_call structure
to ensure safe usage. The hrt_call_every() interface calls this
automatically.

hrt_call_delay() can be used to delay a current callout by the given
number of microseconds
2013-12-10 11:03:31 +01:00
Andrew Tridgell 86ec1c37fa l3gd20: added retries to disable_i2c() 2013-12-10 11:03:12 +01:00
Andrew Tridgell 476070510e lsm303d/l3gd20: change filters to 50Hz analog on-chip filters
after discussion with Leonard these analog on-chip filters should be
at 50Hz
2013-12-10 11:02:49 +01:00
Andrew Tridgell b0bb5a3450 ms5611: change bus speed to 5MHz
this gives 5MHz SPI bus speed (by asking for 6MHz due to timer
granularity).

Tests with a logic analyser show that the ms5611 is actually more
reliable at 5MHz than lower speeds
2013-12-10 11:01:53 +01:00
Andrew Tridgell a52e70ca93 ms5611: removed unused variable 2013-12-10 11:01:33 +01:00
Andrew Tridgell 3f0f34a4c7 ms5611: give cleaner SPI traces
this makes logic traces cleaner by zeroing extra bytes written
2013-12-10 11:01:20 +01:00
Thomas Gubler 5e273bf225 px4iofirmware: in manual mode: ignore control indices which are not controlled by the rmeote control 2013-12-08 21:35:16 +01:00
Thomas Gubler cbde8d27f8 fix small copy paste error in px4io driver 2013-12-08 20:15:47 +01:00
Lorenz Meier 0ba507b640 Added support for a total of four control groups to the IO driver and IO firmware. This allows to run auxiliary payload. Cleaned up defines for RC input channel counts, this needs another sweep to then finally allow up to 16 mapped channels and up to 20-24 RAW RC channels 2013-12-08 11:25:45 +01:00
Anton Babushkin 5397f13b50 Merge branch 'master' into hil_fixes 2013-12-07 22:29:45 +04:00
Lorenz Meier c72162cc5a Add also default descriptor for alternate sensors 2013-12-07 10:44:29 +01:00
Lorenz Meier 7becbcdbd5 Made all usual suspects default to their custom names and only register the default name if its not already taken by someone else 2013-12-07 10:34:32 +01:00
Lorenz Meier 264ef47197 PPM loopback test 2013-12-05 05:02:00 +01:00
Lorenz Meier 1cb576ae4e Merge branch 'master' into tests 2013-12-05 02:52:57 +01:00
Lorenz Meier 012adc9e33 Minor fixes to bus reset 2013-12-04 09:25:07 +01:00
Lorenz Meier acc3cc087f Added sensor rail reset IOCTL and command (fmu sensor_reset 10 resets for 10 ms) 2013-12-04 08:17:35 +01:00
Lorenz Meier 881cf61553 Added IOCTL and command for sensor rail reset (does not yet re-initialize sensor drivers) 2013-12-04 07:57:23 +01:00
Andrew Tridgell edc5b68499 l3gd20: use highest possible on-chip filter bandwidth
this allows the software filter to do its job properly
2013-12-04 07:08:23 +01:00
Andrew Tridgell b2119839bd lsm303d: init filter to 773 Hz 2013-12-04 07:08:05 +01:00
Andrew Tridgell bdb462379a FMUv2: don't config ADC pins that are now used for MPU6k CS and other uses 2013-11-30 20:21:51 +11:00
Andrew Tridgell 19853f87a2 FMUv2: change CS pins to 2MHz
this gives cleaner traces
2013-11-30 20:21:44 +11:00
Andrew Tridgell 6ba54e7035 lsm303d: cleanup logic traces by pre-zeroing all transfers 2013-11-30 20:21:28 +11:00
Andrew Tridgell 9214154831 lsm303d: added I2C disable based on method from ST engineering support 2013-11-30 20:21:08 +11:00
Andrew Tridgell cb76f07d31 l3gd20: added I2C disable based on method from ST engineering support 2013-11-30 20:20:23 +11:00
Andrew Tridgell 720f6ab313 FMUv2: set MPU6000 CS as initially de-selected 2013-11-30 20:20:03 +11:00
Andrew Tridgell 3a597d1a1f FMUv2: added define for MPU DRDY pin 2013-11-30 20:19:58 +11:00
Andrew Tridgell 3decf408c2 FMUv2: added support for MPU6000 on v2.4 board 2013-11-30 20:19:52 +11:00
Andrew Tridgell b666581983 lsm303d: fixed TEMP_H register define 2013-11-30 20:19:26 +11:00
Andrew Tridgell d0507296c0 px4io: moved blue heartbeat LED to main loop
this allows us to tell if the main loop is running by looking for a
blinking blue LED
2013-11-30 20:18:27 +11:00
Andrew Tridgell af47a3d795 mpu6000: change bus speed based on registers being accessed
this ensures we follow the datasheet requirement of 1MHz for general
registers and up to 20MHz for sensor and int status registers
2013-11-30 20:17:55 +11:00
Andrew Tridgell 244c3602f2 SPI: added set_frequency() API
this allows the bus speed to be changed on the fly by device
drivers. This is needed for the MPU6000
2013-11-30 20:17:09 +11:00
Andrew Tridgell 7d415b0c42 lsm303d: print more registers in "lsm303d regdump" 2013-11-30 20:16:51 +11:00
Andrew Tridgell 72c53b6537 lsm303d: define some more register addresses 2013-11-30 20:16:45 +11:00
Andrew Tridgell a46042754f lsm303d: added 'lsm303d regdump' command
useful for diagnosing issues
2013-11-30 20:16:32 +11:00
Lorenz Meier 3701a02a37 Tests for all PWM pins 2013-11-30 10:00:33 +01:00
Hyon Lim b3f1adc54b SO3 estimator code has been cleaned 2013-11-29 02:35:49 +09:00
Hyon Lim bcd745fb0d SO(3) estimator and quaternion receive by mavlink implemented 2013-11-29 02:05:15 +09:00
Anton Babushkin 3c027a8e4d Various HIL-related fixes 2013-11-27 23:04:49 +04:00
marco 4e713a7083 motortest mode enhanced 2013-11-26 19:01:43 +01:00
Thomas Gubler ea9fcaa27f update the commander to only use local pos for landing detection when on rotary wing
Conflicts:
	src/modules/commander/commander.cpp
2013-11-26 18:56:06 +01:00
Anton Babushkin 2a2c8337e8 sensors: discharged current type changed to uint64 2013-11-25 19:22:06 +04:00
Stefan Rado 5f18ce506d Add FrSky telemetry application.
This daemon emulates an FrSky sensor hub by periodically sending data packets to an attached FrSky receiver.
2013-11-24 13:39:02 +01:00
Anton Babushkin 69ed7cf91f missionlib: waypoint yaw fixed 2013-11-23 18:48:05 +04:00
marco d2e32f2fc5 mkblctrl - hotfix for i2c scan 2013-11-22 21:05:40 +01:00
marco cc8e85ce7e mkblctrl scans now i2c3 and i2c1 bir connected esc's 2013-11-21 22:24:16 +01:00
Hyon Lim 9a4b57c352 Update fw_att_control_params.c 2013-11-20 03:04:53 +09:00
Hyon Lim ee985c70b3 Update fw_att_control_params.c
Minor comment error corrected.
2013-11-20 02:45:52 +09:00
marco f82a202667 actuator effective removed - unused 2013-11-19 17:35:04 +01:00
Thomas Gubler 3527ea8a62 tecs: fix wrong != 0 check 2013-11-19 16:39:17 +01:00
Thomas Gubler 1fa609d165 fix off by one in missionlib 2013-11-19 11:46:12 +01:00
marco 21cc19cef6 mkblctrl set a default device / -d (device) parameter for alternate device added / -t testmode enhanced 2013-11-18 21:32:41 +01:00
Anton Babushkin bb9f67ca76 Merge branch 'master' into mavlink_fixes 2013-11-17 09:27:24 +04:00
Anton Babushkin 6cf09183d6 Merge branch 'actuator_eff_fix' into mavlink_fixes 2013-11-16 23:39:56 +04:00
Anton Babushkin 63d81ba415 actuator_controls_effective topic removed 2013-11-16 23:16:09 +04:00
Anton Babushkin 39634d1001 px4io driver: bug fixed 2013-11-16 15:54:24 +01:00
Anton Babushkin 8f559c73e9 px4io driver: bug fixed 2013-11-16 16:07:06 +04:00
Anton Babushkin 45e158b88c Fixed actuator_controls_effective on FMU 2013-11-16 16:06:23 +04:00
Anton Babushkin 6ed268aa28 mavlink: some mavling messages filling bugs fixed 2013-11-15 11:42:19 +04:00
Anton Babushkin e46d60ba6d px4io driver: don’t use PX4IO_PAGE_ACTUATORS page for actuator_controls_effective 2013-11-15 11:32:05 +04:00
James Goppert 1ffb71946d Fixed backside automode typo. 2013-11-14 16:15:30 -05:00
James Goppert 2138a1c816 Improved mode mapping for fixedwing_backside. 2013-11-14 15:24:34 -05:00
James Goppert ea156f556f Added local position publication to mavlink receiver for HIL. 2013-11-14 15:24:07 -05:00
James Goppert 5c66899bfb Added local position pub to att_pos_esitmator_ekf 2013-11-14 15:23:39 -05:00
James Goppert ba3681d3a0 Updated backside controller/ added backside config. 2013-11-14 12:34:51 -05:00
Lorenz Meier 2116966b1e Merge branch 'yaw_auto_failsafe' of github.com:PX4/Firmware 2013-11-13 19:39:04 +01:00
Lorenz Meier 2444b68a0a Merge branch 'yaw_pid_fix' of github.com:PX4/Firmware 2013-11-13 19:38:51 +01:00
Anton Babushkin 185bdb05a6 Mavlink VFR message publication fix 2013-11-13 22:30:39 +04:00
Thiago0B 434de4e949 Fix user abort behave in test
Now the pwm ouput return to the last value before test (useful and safer when testing ESCs).
2013-11-11 22:02:40 -02:00
Anton Babushkin 94a3935975 Merge branch 'master' into batt_fixes 2013-11-11 22:03:09 +04:00
Anton Babushkin 714f5ea634 Track raw battery voltage and filtered battery voltage separately. Estimate remaining battery as min(voltage_estimate, discharged_estimate). Battery voltage LPF time increased. 2013-11-11 22:02:55 +04:00
Lorenz Meier a1398c991e Merge pull request #525 from thomasgubler/airspeed_meas_calibration
fix MEAS airspeed and airspeed calibration
2013-11-10 10:40:45 -08:00
Thomas Gubler ae9fae5aae fix MEAS airspeed and airspeed calibration 2013-11-10 19:25:38 +01:00
Anton Babushkin e8487b7498 sensors: minor cleanup, bugs fixed, use unsigned long for discharged integration to avoid rounding errors. 2013-11-10 15:51:47 +04:00
Anton Babushkin 20db1602d7 mavlink battery current scale fix 2013-11-10 00:12:40 +04:00
Anton Babushkin 75c57010d6 sdlog2: BATT message bug fixed 2013-11-10 00:06:00 +04:00
Anton Babushkin 9f4dc0d154 Merge branch 'master' into yaw_pid_fix 2013-11-09 23:31:09 +04:00
Anton Babushkin 2761ea4adc sdlog2: BATT message format fixed 2013-11-09 23:29:45 +04:00
Anton Babushkin e2f50f7bf8 Fix mavlink battery remaining scale 2013-11-09 17:56:40 +04:00
Julian Oes 64431a45ba missionlib: Added geo.h include, without this the _wrap_pi function returned garbage (e.g. for the yaw setpoint in auto) 2013-11-09 11:59:23 +01:00
Anton Babushkin 03162f5f0d multirotor_pos_control: failsafe against invalid yaw setpoint in AUTO 2013-11-09 14:11:39 +04:00
Anton Babushkin 6b085e8ced Use discharged current to estimate remaining battery charge if capacity is known 2013-11-08 21:30:10 +04:00
Anton Babushkin 1a318ee2a6 sdlog2: log all low-level battery parameters in BATT message 2013-11-08 21:29:26 +04:00
Anton Babushkin 697df775f9 sensors: fixed bug discharged battery current 2013-11-08 21:28:22 +04:00
Lorenz Meier c63995e91c Hotfix: Be more aggressive about SPI2 init on v1 boards 2013-11-08 14:22:27 +01:00
Anton Babushkin 08b2c338f6 Workaround to compile on FMUv1. 2013-11-07 22:38:24 +04:00
Anton Babushkin d9767eb100 Battery current reading implemented. 2013-11-07 22:23:57 +04:00
Julian Oes 4502c285eb Startup scripts: Start the commander early and let it try to open the mavlink_fd with 20Hz 2013-11-05 19:56:33 +01:00
Lorenz Meier d3b267c06e Integral fixes, last parts 2013-11-05 09:20:07 +01:00
Lorenz Meier 1358d4cb88 Hotfix: Fix integrator parameters 2013-11-05 07:44:16 +01:00
Lorenz Meier ed60dc50fc Hotfix: forbid integrator to accumulate NaN values if they ever would occur 2013-11-05 07:43:08 +01:00
Anton Babushkin 19fab5f395 Merge branch 'master' into rc_failsafe 2013-11-04 16:56:09 +04:00
Lorenz Meier 3042731d26 Smaller hotfixes for att pos estimator 2013-11-03 18:27:26 +01:00
Lorenz Meier 791695ccd0 Hotfix: Check for out of range accel values 2013-11-03 18:26:39 +01:00
Lorenz Meier b53d86ed68 Hotfix for mag calibration 2013-11-03 18:26:02 +01:00
Lorenz Meier 8d4ec9b9cd Merge branch 'master' of github.com:PX4/Firmware 2013-11-03 18:17:05 +01:00
Lorenz Meier ba0687bc5e Matrix and Vector printing cleanup 2013-11-03 18:06:58 +01:00
Lorenz Meier 4865814f92 Fixed typo, added testing - previous corner case now cleanly prevented 2013-11-03 17:58:28 +01:00
Lorenz Meier 98f5a77574 Fix to cancel pending callbacks for closing ORB topics 2013-11-03 17:52:27 +01:00
Thomas Gubler a4c99225c0 initialize _vel_dot and _STEdotErrLast 2013-11-03 17:17:45 +01:00
Anton Babushkin 67c33b2810 multirotor_att_control: style fixes, cleanup 2013-11-02 23:36:25 +04:00
Anton Babushkin ad133f601b multirotor_att_control: use PID lib for yaw rate control 2013-11-02 23:36:25 +04:00
Lorenz Meier 64c2165e8b Merge pull request #507 from thomasgubler/airspeed_poll
fix vehicle_airspeed_poll logic
2013-11-02 10:35:38 -07:00
Thomas Gubler ef7a425a45 fix vehicle_airspeed_poll logic: _tecs.enable_airspeed was not called before on valid airspeed 2013-11-02 17:33:45 +01:00
Thomas Gubler 3eac9ce159 fix usage of wrong value for max airspeed parameter 2013-11-02 16:16:49 +01:00
Lorenz Meier 0c762b6d1b Merge branch 'master' of github.com:PX4/Firmware 2013-11-01 11:09:07 +01:00
Anton Babushkin af12065826 sensors: code style fixed 2013-11-01 13:59:24 +04:00
Anton Babushkin 97acb49028 commander: bug fixed in failsafe 2013-11-01 13:58:23 +04:00
Anton Babushkin 9eea4f79d9 sensors: support for Futaba RC failsafe 2013-11-01 13:58:03 +04:00
Lorenz Meier 5781b58640 Minor bugfix to commander, emits arming sound now on the right occasions. Fixes an annoying issue where the arming sound would go off constantly if the safety was re-engaged in arming mode, something that we consider to be ok operationally 2013-11-01 09:05:28 +01:00
Lorenz Meier 094fa0bd43 Merge pull request #502 from PX4/pwm_ioctls
more esc_calib enhancements
2013-10-31 23:33:50 -07:00
Julian Oes 25bf1abecf pwm_output: Allow PWM values from 900us to 2100us but use a default of 1000us to 2000us 2013-10-31 10:29:06 +01:00
Lorenz Meier 9544fe446e Merge pull request #504 from Runepx4/master
Added 8 rotor Coaxial Rotor mixer
2013-10-31 02:28:43 -07:00
runepx4 eac640739b Added 8 rotor Coaxial Rotor mixer 2013-10-31 10:23:58 +01:00
Julian Oes aecb62a2dd Fixed small typo 2013-10-31 09:57:30 +01:00
Julian Oes 88351f3da1 esc_calib: Changed cmdline interface (now same as for the pwm systecmd), read in the number of channels available, don't make the esc_calib dependant on min/max/disarmed values 2013-10-31 09:20:44 +01:00
Lorenz Meier 7d443eb332 Commandline parsing fixes 2013-10-31 09:03:37 +01:00
Lorenz Meier 3c8c091e76 esc_calib on steroids 2013-10-31 08:23:44 +01:00
Lorenz Meier 9820ed9de3 Actually allow full range in FMU driver 2013-10-31 08:23:32 +01:00
Lorenz Meier 1a09907d5b Merge branch 'master' of github.com:PX4/Firmware into pwm_ioctls 2013-10-30 22:35:19 +01:00
Lorenz Meier 0eabacd251 Merge branch 'pwm_ioctls' of github.com:PX4/Firmware into pwm_ioctls 2013-10-30 22:35:09 +01:00
Lorenz Meier 727342a516 Teached the FMU driver that stopping is also an option 2013-10-30 22:34:51 +01:00
Lorenz Meier 9e74f178c9 Merge pull request #496 from PX4/wp_yaw_fix
missionlib: waypoint yaw fix
2013-10-30 11:26:58 -07:00
Lorenz Meier dc80d6745e Merge branch 'master' of github.com:PX4/Firmware into pwm_ioctls 2013-10-30 09:15:55 +01:00
Lorenz Meier bd874afcfd Fixed pwm limit to apply the proper limits / scaling 2013-10-30 09:14:17 +01:00
Lorenz Meier f0466143de Minor warning and no error in case of zero value for disarmed 2013-10-30 09:04:03 +01:00
Lorenz Meier 44f88bf0a7 Fix to allow setting again zero disarmed PWM values after boot 2013-10-30 09:03:19 +01:00
Lorenz Meier 2293aa4e0a Fixed min value check, works for fixed wing now 2013-10-29 21:22:05 +01:00
Julian Oes a06b3e50ab Only read 5 values, then return 2013-10-29 15:57:09 +01:00
Lorenz Meier 0fa03e65ab Cleanup of Doxygen tags 2013-10-28 15:21:50 +01:00
Lorenz Meier 1336d625a8 Hotfix: Announcing important messages via audio 2013-10-28 14:47:37 +01:00
Andrew Tridgell 52ee477137 lsm303d: try to reset the lsm303d if it goes bad in flight
this is based on earlier work by Julian Oes
2013-10-28 13:10:52 +01:00
Andrew Tridgell 75a0c18a9e px4io: FMU half of px4io error fixes 2013-10-28 13:10:38 +01:00
Andrew Tridgell 9064f8bf09 px4io: fixed the io_reg_{set,get} errors
this fixes the PX4IO state machine to avoid the io errors we were
seeing. There are still some open questions with this code, but it now
seems to give zero errors, which is an improvement!
2013-10-28 13:10:23 +01:00