Commit Graph

1599 Commits

Author SHA1 Message Date
Lorenz Meier 56bd61cd2d Merge pull request #286 from NosDE/master
mkblctrl cleaned up and flown with px4 stack and arducopter
2013-05-26 08:24:14 -07:00
marco 73d2baeb20 comments cleaned 2013-05-26 16:49:33 +02:00
Lorenz Meier 1edc36bfd4 More documentation 2013-05-25 23:01:55 +02:00
Anton Babushkin 691dc8eefd sdlog2 strick packing fixed, length bug fixed, "sdlog2_dump.py" debug tool added 2013-05-26 00:14:10 +04:00
Anton Babushkin e211352604 sdlog2 logger app added. New flexible log format, compatible with APM. 2013-05-25 22:16:43 +04:00
Lorenz Meier bc7a7167ae Go only to RC failsafe if throttle was half once - to prevent failsafe when armed on ground 2013-05-25 18:21:39 +02:00
Lorenz Meier 214ddd6f1c Adjusted example params and extensively commented example 2013-05-25 18:16:15 +02:00
marco 8e1571cf02 mkblctrl cleanup & tested 2013-05-24 20:16:47 +02:00
Anton Babushkin f8900f002c Merge branch 'master' into seatbelt_multirotor 2013-05-24 12:52:02 +04:00
marco 9f090e651a mkblctrl cleanup 2013-05-23 21:03:49 +02:00
px4dev dca844a808 Based on comments in:
http://answers.px4.ethz.ch/question/1337/px4io-receiver-connection-problem/?answer=1346#post-id-1346

increase the longest PPM pulse we recognize out to 550µs.
2013-05-23 09:27:57 +02:00
Lorenz Meier 81acd98997 Added limit to heading command 2013-05-23 08:54:08 +02:00
Hyon Lim (Retina) 4bf0505421 Test flight has been performed with nonlinear SO(3) attitude estimator.
Here are few observations:
 - When the system initialized, roll angle is initially reversed.
   As filter converged, it becomes normal.
 - I put a negative sign on roll, yaw. It should naturally has right
   sign, but I do not know why for now. Let me investigate again.
 - Gain : I do not know what gain is good for quadrotor flight.
   Let me take a look Ardupilot gain in the later.

Anyway, you can fly with this attitude estimator.
2013-05-23 16:20:38 +10:00
Hyon Lim (Retina) 364d1a06e3 To use freeIMU processing visualization tool, I have implemented float number transmission over uart (default /dev/ttyS2, 115200)
But this not tested yet. I should.
2013-05-23 16:20:38 +10:00
Hyon Lim (Retina) f547044203 Roll pitch yaw should be verified again 2013-05-23 16:20:38 +10:00
Hyon Lim (Retina) 32bace0824 I do not know why roll angle is not correct. But system looks okay 2013-05-23 16:20:38 +10:00
Hyon Lim (Retina) 0c3412223b Fixed few minor bug 2013-05-23 16:20:38 +10:00
Hyon Lim (Retina) 1caddb7bbb Initial work of so3 nonlinear complementary filter 2013-05-23 16:20:38 +10:00
px4dev 308ec6001a Add serial read-length handling. 2013-05-22 22:09:00 +02:00
px4dev 437d9e4180 Merge branch 'fmuv2_bringup' into fmuv2_bringup_io2 2013-05-22 21:39:30 +02:00
Lorenz Meier 327d8751d2 Hotfix: Removing GPS debug output 2013-05-22 17:53:17 +02:00
Lorenz Meier 03eac33a3d Merge branch 'master' of github.com:cvg/Firmware_Private into fmuv2_bringup 2013-05-22 12:16:41 +02:00
Anton Babushkin 6e8621269b Code style fixed 2013-05-22 13:59:51 +04:00
Anton Babushkin 09ce3e2d0a Added GPIO_EXT1/GPIO_EXT2 selection. 2013-05-22 11:30:50 +04:00
Lorenz Meier 5d9512eb79 Removed unnecessary cplusplus check 2013-05-21 10:17:37 +02:00
Lorenz Meier e655c0fc57 Fixed missing count 2013-05-21 10:14:16 +02:00
Lorenz Meier 5dfde44c56 Fixed va args in MAVLink, tested with RC config, correct output 2013-05-21 09:14:22 +02:00
Lorenz Meier d720944efe VA args now supported by MAVLink text messages 2013-05-21 09:14:22 +02:00
Lorenz Meier 88ba97816d Better preflight check, catches wrong RC configs. Needs rework of mavlink text message API to VARARGs 2013-05-21 09:14:22 +02:00
Lorenz Meier 0165034e49 Hotfix: Changed alarms back to what they originally were designed for: Traps to later see if condition was once violated. Currente status can be read through the status flags 2013-05-21 09:14:22 +02:00
Lorenz Meier bc3eca5df3 Merge branch 'master' of github.com:PX4/Firmware 2013-05-20 23:19:40 +02:00
Lorenz Meier 462547c527 Hotfix: Building fixedwing backside params correctly 2013-05-20 23:19:24 +02:00
px4dev 05fe7779a9 Fix .gitignore to avoid ignoring prebuilt libraries.
Also, generally clean-up the .gitignores and farm off separate versions for the NuttX/Apps directories to keep things tidy.
2013-05-20 20:33:18 +02:00
Anton Babushkin 5842c22123 Use GPS velocity in position estimator 2013-05-20 19:47:38 +04:00
px4dev 5576e321fa Use the new prebuilt-library support to wrap the ARM CMSIS DSP library, and update to the version shipped with CMSIS 3.0 r3p2 2013-05-20 00:30:43 +02:00
px4dev b7d430e3c0 Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringup
Fix px4iov2 build issue by selecting the correct NuttX config.
2013-05-19 21:51:35 +02:00
Julian Oes f5c157e74d Merge remote-tracking branch 'upstream/master' into new_state_machine
Conflicts:
	src/drivers/px4io/px4io.cpp
	src/modules/commander/commander.c
	src/modules/commander/state_machine_helper.c
2013-05-17 11:24:02 +02:00
Anton Babushkin 2f280bb4ca Merge branch 'master' into gpio_led 2013-05-17 12:48:46 +04:00
Anton Babushkin eb2fc4e036 Merge branch 'master' into seatbelt_multirotor 2013-05-17 12:23:48 +04:00
Andrew Tridgell fa816d0fd6 arming: added PWM_SERVO_SET_ARM_OK and PWM_SERVO_CLEAR_ARM_OK
these new ioctls allow for the flight code to tell the IO board that
arming can proceed
2013-05-16 08:39:24 +02:00
Simon Wilks 6571629dca Merged new repository layout from PX4/Firmware 2013-05-15 20:11:13 +02:00
Lorenz Meier d02f5c5505 Merge branch 'master' of github.com:PX4/Firmware 2013-05-14 22:47:21 +02:00
Lorenz Meier 9a07788d58 Hotfix: Off-by-one fix in overflow check 2013-05-13 23:25:18 +02:00
sjwilks 1b9222f43a Merge pull request #269 from PX4/new_led_status
New led status
2013-05-13 07:49:19 -07:00
Lorenz Meier 3ac76c4476 Blink pattern fixes 2013-05-13 10:15:36 +02:00
Lorenz Meier 69571c48c4 Fixed compile and logic errors, behaving now 2013-05-13 10:02:15 +02:00
Lorenz Meier f8c199062a Merge branch 'master' of github.com:PX4/Firmware 2013-05-13 08:34:18 +02:00
Lorenz Meier 1ff6c80866 More example fixes 2013-05-13 08:28:36 +02:00
Lorenz Meier 6ea204c813 Added fixed wing controller example 2013-05-12 20:08:09 +02:00
Lorenz Meier 79f9b61aff Fixed led patterns to be up to the latest specs 2013-05-12 20:05:20 +02:00
Lorenz Meier 0c43da3b64 Tested with PX4FMU and PX4IO with GPS and arming 2013-05-12 13:11:12 +02:00
px4dev 555d42e0cd Oops, left in some test code. 2013-05-11 16:46:52 -07:00
px4dev 196ee8b16f Change the way modules are built so that object paths are relative and use vpath for locating sources (so source paths are also shorter).
Add some basic documentation for the build system files while we're at it.
2013-05-11 11:32:05 -07:00
Anton Babushkin 9a9e41f7a2 Merge branch 'master' into gpio_led 2013-05-09 22:41:09 +04:00
Lorenz Meier 304ce63f00 Hotfix: Wrong capitalization on header file name 2013-05-09 19:03:40 +02:00
Lorenz Meier b7a9e07783 Hotfix: Wrong capitalization on header file name 2013-05-09 19:03:24 +02:00
Lorenz Meier 26efba2ff3 New blink patterns for safety switch, removed GPS lock indicator 2013-05-09 17:38:12 +02:00
Lorenz Meier fa1b7388f3 Implemented new led status proposal 2013-05-09 17:34:00 +02:00
Lorenz Meier 3ec536a876 Improved GPS update rate calculation 2013-05-09 17:13:38 +02:00
Lorenz Meier 5886e93a33 Merge branch 'gps_vel' of github.com:PX4/Firmware 2013-05-09 16:09:33 +02:00
Lorenz Meier 614bbb1510 Merged ETS airspeed driver 2013-05-09 15:58:23 +02:00
Lorenz Meier 3152dae3dc Merged with master 2013-05-09 15:52:36 +02:00
Lorenz Meier 296a19072d Enabled leds on FMU again 2013-05-09 15:39:54 +02:00
Lorenz Meier 44df8db984 Merge branch 'master' of github.com:PX4/Firmware into export-build 2013-05-06 23:50:23 +02:00
Lorenz Meier eac9e10a83 Moved calibration 2013-05-06 23:50:14 +02:00
Lorenz Meier 4a44e10411 Merge branch 'export-build' of github.com:PX4/Firmware into export-build 2013-05-06 07:55:12 +02:00
Lorenz Meier 4611fca7b4 Merge branch 'master' of github.com:PX4/Firmware into export-build 2013-05-06 07:54:55 +02:00
px4dev 1ca535b941 Fix whitespace damage, update help text to indicate the -m option is for debug use only. 2013-05-05 16:52:26 -07:00
Lorenz Meier bb94847511 Allowed parsing of floating point params from scripts 2013-05-05 11:43:29 +02:00
Lorenz Meier 13110e0a1f ROMFS wide quad mixer addition and cleanup 2013-05-05 11:35:56 +02:00
Lorenz Meier 8c6abe717d Moved BLCTRL driver to new world 2013-05-05 11:24:31 +02:00
Andrew Tridgell 5b75519925 px4io: handle errors from adc_measure()
don't update the voltage/current values on error
2013-05-04 19:18:58 +10:00
Andrew Tridgell d7e04a3619 px4io: fixed voltage/current output and add discharged_mah calculation
this integrates the current over time to calculate discharged_mah, and
allows the scaling of the current and the bias to be set with the
px4io command
2013-05-04 19:18:55 +10:00
Andrew Tridgell af27101ffe px4io: changed adc_measure() to return 0xffff on error, and lower timeout
the timeout of 1ms was far too long, and could impact flight
performance

Returning 0xffff on error matches the FMU code, and allows bad values
to be discarded
2013-05-04 19:18:51 +10:00
Andrew Tridgell 44015d6915 px4io: return raw ADC value for current
we don't know how to scale it as we have no info on what sensor is
attached. As we are returning a uint16_t it is better to let the FMU
sort it out or we'll just lose precision.
2013-05-04 19:18:47 +10:00
Andrew Tridgell ff7712ca3e pwm: added -m option
this allows setting of the channel mask directly, which is useful for
testing
2013-05-04 19:18:20 +10:00
Andrew Tridgell fc572906b7 px4io: ensure upload device is closed after use
this should release it for PWM use
2013-05-04 19:18:11 +10:00
Andrew Tridgell 421253e6db px4io: allow set of output rates above 400 and below 50
let the IO board decide if the rate is reasonable, and limit it there

this fixes the rates on ArduCopter, which try for 490
2013-05-04 19:17:54 +10:00
Andrew Tridgell d0122dccfc hmc5883: fixed use of onboard I2C compass 2013-05-04 18:44:37 +10:00
px4dev e67022f874 Serial interface for IOv2 2013-04-28 18:14:46 -07:00
px4dev 8f7200e011 Frame up the configuration for the serial interface on IOv2 2013-04-28 13:51:33 -07:00
px4dev c6b7eb1224 Remove obsoleted file. 2013-04-28 13:00:49 -07:00
px4dev 8d3a738b70 Remove some trash files. 2013-04-28 13:00:32 -07:00
Lorenz Meier e6b287fbfc Merge branch 'public-export-build' into fmuv2_bringup_io2 2013-04-28 15:26:05 +02:00
Lorenz Meier dc2c3cad3e Re-enabled mixer 2013-04-28 14:59:42 +02:00
Lorenz Meier a1503a8dd7 Merge branch 'public-export-build' into fmuv2_bringup 2013-04-28 14:54:57 +02:00
Lorenz Meier 0eafc2ade1 IO compiling 2013-04-28 14:54:44 +02:00
Lorenz Meier 6479ebcc73 General app cleanup for FMU 2013-04-28 14:54:06 +02:00
Lorenz Meier 1df5e98aa5 XXX: WIP: Disabled mixer on IOv2 due to CXX compile issue 2013-04-28 14:50:05 +02:00
Lorenz Meier 6aefe5fddf Merged export-build 2013-04-28 10:40:00 +02:00
Lorenz Meier 25612cebc2 Cleaned up NuttX appconfig, added examples to config 2013-04-28 10:37:07 +02:00
Lorenz Meier 13fc670386 Moved last libs, drivers and headers, cleaned up IO build 2013-04-28 09:54:11 +02:00
Lorenz Meier d07631d056 Merge branch 'public-export-build' into fmuv2_bringup 2013-04-28 01:30:46 +02:00
Lorenz Meier f57439b90e Moved all drivers to new world, PX4IO completely in new world 2013-04-28 01:30:14 +02:00
Lorenz Meier 81df6b1eda Merge branch 'public-export-build' into fmuv2_bringup 2013-04-27 19:53:21 +02:00
Lorenz Meier 8040b9b96e Allowed for onboard bus to be not present 2013-04-27 19:51:06 +02:00
Lorenz Meier ae1f438a3a Merge branch 'public-export-build' into fmuv2_bringup 2013-04-27 19:31:12 +02:00
Lorenz Meier 7ac617242d docs fix 2013-04-27 19:27:24 +02:00
Lorenz Meier ee498a9d7c Made HMC bus-agnostic 2013-04-27 19:27:15 +02:00
Lorenz Meier f1b8e4e5b3 Merged move of additional apps out of NuttX folders 2013-04-27 15:50:07 +02:00
Lorenz Meier 7ca82801bd Moved multirotor controllers 2013-04-27 14:42:12 +02:00
Lorenz Meier 988bf1eb0a Moved all fixed wing controllers to new world 2013-04-27 14:28:47 +02:00
Lorenz Meier 5085023796 Merge branch 'master' of github.com:PX4/Firmware into public-export-build 2013-04-27 14:17:01 +02:00
Lorenz Meier 76a30108d2 Moved James Gopperts EKF to the new world 2013-04-27 14:16:34 +02:00
Lorenz Meier 5974c37abb Moved the bulk of sensor drivers to the new world 2013-04-27 14:06:23 +02:00
Lorenz Meier 852e6e2f49 Merged with upstream export-build branch 2013-04-27 13:26:25 +02:00
Lorenz Meier c89f46f590 Moved sensors app to new world 2013-04-27 13:16:24 +02:00
Lorenz Meier e6ed8268ee Moved position_estimator_mc, px4io driver and sdlog app to new style build 2013-04-27 12:59:47 +02:00
Lorenz Meier 574e765321 Moved all system commands to the new world 2013-04-27 11:50:10 +02:00
Lorenz Meier f924e312fa Merged 2013-04-27 11:47:42 +02:00
Lorenz Meier d8a3454538 Cut over MAVLink to new build system 2013-04-27 11:45:46 +02:00
Lorenz Meier 3d6aff38da Merged 2013-04-27 11:38:06 +02:00
Lorenz Meier 2289c0bb21 Moved all system commands to new build system 2013-04-27 11:30:41 +02:00
px4dev 9d4d1ace43 Pick up the MAVlink headers from the right place 2013-04-26 23:09:38 -07:00
px4dev 1c78e365ce Merge branch 'export-build' of https://github.com/PX4/Firmware into fmuv2_bringup 2013-04-26 20:43:07 -07:00
px4dev 4748bba35a Move the 'tests' app to the new world. 2013-04-26 20:02:12 -07:00
px4dev a7fc1b74bf Merge branch 'export-build' of https://github.com/PX4/Firmware into fmuv2_bringup 2013-04-26 19:25:31 -07:00
px4dev 01e427b17c Merge working changes into export-build branch. 2013-04-26 16:14:32 -07:00
Lorenz Meier 63136e3543 Resurrected C++ change commit, now back up to same state as master 2013-04-27 00:11:16 +02:00
Lorenz Meier c71f4cf869 Cut over MAVLink to new style build system 2013-04-27 00:10:20 +02:00
Lorenz Meier 9169ceb3f4 Cut over commander app to new build system 2013-04-26 11:10:39 +02:00
Lorenz Meier aa85fba979 Ported AR.Drone interface to new style config 2013-04-26 11:01:47 +02:00
Lorenz Meier 3ecdca41e5 Cut over attitude estimator to new-style config for all boards 2013-04-23 12:36:26 +02:00
Lorenz Meier c52278f679 Allowed board to init properly as intended with or without SPI2 2013-04-23 12:35:19 +02:00
Lorenz Meier 59d12ee77f Merge branch 'fmuv2_bringup' of github.com:cvg/Firmware_Private into fmuv2_bringup 2013-04-23 09:36:09 +02:00
Lorenz Meier 17e01eb9cb Merged 2013-04-22 13:13:08 +02:00
px4dev f45e15615a Merge commit 'b149b834c835190fbb3f7e1914346d5e0620036d' into fmuv2_bringup 2013-04-20 15:20:33 -07:00
Lorenz Meier b149b834c8 Initial attempt at getting SDIO to work 2013-04-18 22:56:25 +02:00
Lorenz Meier 94084ec22a Enable support for RAMTRON, enable support for EEPROM on FMU 1.x 2013-04-18 22:27:55 +02:00
Julian Oes b7e947cb3d Anti-Aliasing frequency of the LSM303D can now be read too, not just written 2013-04-17 12:41:56 -07:00
Julian Oes 76497502cb Moved the L3GD20 driver to the new driver, working on FMU v1 and v2 2013-04-17 12:41:56 -07:00
Julian Oes 0eddcb3357 Tried to collect some changes that I needed to build for FMUv2 into a commit 2013-04-17 12:41:56 -07:00
Julian Oes 3469fefe11 Checked axes of LSM303D 2013-04-09 23:34:27 +02:00
Julian Oes 1d327c42a6 Mag sample rate was not actually changed by an ioctl 2013-04-09 23:34:19 +02:00
Julian Oes eb3d6f228c Added some functions for changing rates etc (WIP) 2013-04-09 23:34:08 +02:00
px4dev 4703a68979 Fix the default state of the peripheral power control. 2013-04-07 22:00:23 -07:00
px4dev 2557f0d2de Rename the 'device' directory back to 'drivers', it's less confusing that way.
Move the fmuv2 board driver out into the new world.
2013-04-06 23:04:32 -07:00
px4dev 8eeefcce05 Add GPIO driver access to the power supply control/monitoring GPIOs for FMUv2 2013-04-06 22:46:50 -07:00
px4dev c355275669 Make the 'fmu' command build for v2. Should be enough to get the FMU-side PWM outputs working, but untested. 2013-04-06 19:20:08 -07:00
px4dev 706dcb6a53 Move the FMU driver from the old universe to the new universe so that we can teach it about v2. 2013-04-06 18:38:32 -07:00
px4dev d1a2e9a9c1 Fix the v2 RGB LED ID 2013-04-06 18:18:49 -07:00
px4dev e5fa9dbcea Move the LSM303D driver over into the new world. 2013-04-06 11:16:24 -07:00
Lorenz Meier e2c30d7c1d Added include dir for RGB led 2013-04-06 12:12:39 +02:00
Lorenz Meier c25248f1af Fixed RGB led warnings and error handling 2013-04-06 12:00:51 +02:00
px4dev c558ad15ab Add the RGB LED driver as an example. 2013-04-06 01:00:07 -07:00
px4dev 8b9b41fd50 Populate INCLUDE_DIRS with some likely candidates.
Implement __EXPORT and such for modules, as well as symbol visibility.

Don't use UNZIP to point to unzip, as it looks there for arguments.
2013-04-06 00:51:59 -07:00
px4dev 6b215be739 Use indirect calls for all commands (echo, make, etc.)
Replace our dependency on xxd with a toolchain call, and implement the backend using objcopy evil for the default toolchain.
2013-02-23 22:01:00 -08:00
px4dev d24599931a APP -> MODULE
remove as many duplicate slashes, etc. as seems practical
2013-02-23 22:01:00 -08:00
px4dev 8d7621079a Checkpoint: application framework makefile done 2013-02-23 22:00:59 -08:00