Commit Graph

3242 Commits

Author SHA1 Message Date
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 5b3844621c stdio: fixed build error for stdio on px4io 2013-05-04 19:18:39 +10:00
Andrew Tridgell 953acbe650 libvsprintf: fixed handling of "%f" to print precision 6 2013-05-04 19:18:35 +10:00
Andrew Tridgell a153ee529f libdtoa: don't print trailing zeros if no decimal is printed 2013-05-04 19:18:29 +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 b06098a540 libdtoa: fixed handling of NaN and Infinity
otherwise we print thousands of 00000 characters
2013-05-04 19:17:15 +10:00
Andrew Tridgell a627f6c0eb otgfsdev: removed a DEBUGASSERT() that causes a crash on windows reconnect
when windows reconnects to a ACM device, this assert sometimes
triggered. The case it is looking for is handled further down.
2013-05-04 19:16:13 +10:00
Andrew Tridgell d0122dccfc hmc5883: fixed use of onboard I2C compass 2013-05-04 18:44:37 +10:00
Andrew Tridgell aa9275c29c build: allow additional flags to be passed via EXTRAFLAGS
this allows for flags needed for the APM build
2013-05-04 11:44:38 +10:00
Andrew Tridgell 6e8c1148d5 build: allow absolute paths for module sources 2013-05-04 11:44:38 +10:00
px4dev 8d3a738b70 Remove some trash files. 2013-04-28 13:00:32 -07:00
px4dev edf96fc808 Remove some naked command invocations. 2013-04-28 12:47:34 -07:00
Lorenz Meier dc2c3cad3e Re-enabled mixer 2013-04-28 14:59:42 +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 b1de6c0eaf Excluded examples from default build 2013-04-28 10:38:45 +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 f57439b90e Moved all drivers to new world, PX4IO completely in new world 2013-04-28 01:30:14 +02:00
Lorenz Meier 8040b9b96e Allowed for onboard bus to be not present 2013-04-27 19:51:06 +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 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 5514d6879a Docs changes 2013-04-27 14:09:48 +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 1becedfe01 Minor config file rearrangement 2013-04-27 13:41:40 +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 51badab96d Deleted old cruft 2013-04-27 11:48:38 +02:00
Lorenz Meier f57b9ab298 Deleted old-style EEPROM driver, new one is already functional 2013-04-27 11:48:17 +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
px4dev 4748bba35a Move the 'tests' app to the new world. 2013-04-26 20:02:12 -07:00
px4dev 53f6bac327 Merge branch 'master' into export-build
Clean up some script trash and update scripts.
2013-04-26 19:16:55 -07:00
px4dev 01e427b17c Merge working changes into export-build branch. 2013-04-26 16:14:32 -07:00
Lorenz Meier 72aaa0f7f2 Merge pull request #253 from sjwilks/quad_xv_mode
Add support for quads with offset arms such as the TBS Discovery
2013-04-26 14:34:50 -07:00
px4dev ce0e4a3afd Merge branch 'master' into export-build 2013-04-26 13:03:05 -07:00
px4dev 46085b43d1 Use the I2C bus number from the board config, not a hardcoded value. 2013-04-26 13:00:48 -07:00
px4dev 264cf65d0f Fix an error in a #error 2013-04-26 13:00:27 -07:00
px4dev 74c62a131e Fix the way that we idle the tone_alarm pin so that the board defines what is the 'safe' state. 2013-04-26 13:00:12 -07:00
px4dev de412b6467 Pass -g to the link phase for PX4IO the same way we do for FMU 2013-04-26 12:59:35 -07:00