aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware
Commit message (Collapse)AuthorAgeFilesLines
* Restructure things so that the PX4 configs move out of the NuttX tree, and ↵px4dev2013-08-021-6/+1
| | | | | | 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.
* Symbol cleanup for servo vs. battery voltageLorenz Meier2013-07-262-23/+15
|
* More compile fixesLorenz Meier2013-07-161-0/+5
|
* Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringuppx4dev2013-07-145-8/+67
|\
| * General cleanup of /dev/px4io and /dev/px4fmuJean Cyr2013-07-092-4/+11
| | | | | | | | | | | | | | - 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.
| * Prevent RELAY1 control via IOCTL if DSM bind feature is enabledJean Cyr2013-07-072-2/+2
| |
| * Merge remote-tracking branch 'upstream/master'Jean Cyr2013-07-071-1/+1
| |\
| * | Support binding DSM2 and DSMX satellite receiversJean Cyr2013-07-055-5/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Tweak IO serial packet error handling slightly; on reception of a serial ↵px4dev2013-07-071-10/+34
| | | | | | | | | | | | | | | | | | 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.
* | | Pull v2 pieces up to build with the mergepx4dev2013-07-074-18/+20
| | |
* | | Merge branch 'master' of https://github.com/PX4/Firmware into fmuv2_bringuppx4dev2013-07-071-1/+1
|\ \ \ | | |/ | |/|
| * | MergedLorenz Meier2013-06-071-6/+12
| |\|
| * | Merged masterLorenz Meier2013-06-063-9/+71
| |\ \
| * | | Integration WIP with current NuttX versionLorenz Meier2013-06-011-1/+1
| | | |
* | | | Tweak protocol register assignments and add new registers to accommodate ↵px4dev2013-07-065-79/+162
| | | | | | | | | | | | | | | | differences in IOv2.
* | | | Enable UART error handling on PX4IO.px4dev2013-07-061-4/+3
| | | |
* | | | Move the common definitions for the PX4IO serial protocol into the shared ↵px4dev2013-07-062-77/+80
| | | | | | | | | | | | | | | | header.
* | | | Copy the correct number of bytes back for register read operations. Basic ↵px4dev2013-07-061-1/+1
| | | | | | | | | | | | | | | | PX4IO comms are working now.
* | | | Enable handling for short-packet reception on FMU using the line-idle ↵px4dev2013-07-051-1/+1
| | | | | | | | | | | | | | | | interrupt from the UART. Enable short packets at both ends.
* | | | Enable handling for short-packet reception on IO using the line-idle ↵px4dev2013-07-051-15/+22
| | | | | | | | | | | | | | | | interrupt from the UART.
* | | | Remove the TX completion callback on the IO side.px4dev2013-07-051-40/+49
| | | | | | | | | | | | | | | | Report CRC, read and protocol errors.
* | | | Send error response if register write fails.px4dev2013-07-051-1/+5
| | | |
* | | | Be more consistent with the packet format definition.px4dev2013-07-051-5/+5
| | | | | | | | | | | | | | | | Free perf counters in ~PX4IO_serial
* | | | Check packet CRCs and count errors; don't reject packets yet.px4dev2013-07-051-0/+7
| | | |
* | | | Add an 8-bit CRC to each transmitted packet.px4dev2013-07-051-3/+54
| | | |
* | | | Encode the packet type and result in the unused high bits of the word count.px4dev2013-07-051-7/+19
| | | |
* | | | Always send and expect a reply for every message.px4dev2013-07-051-16/+12
| | | |
* | | | Reset the PX4IO rx DMA if we haven't seen any traffic in a while; this gets ↵px4dev2013-07-041-0/+8
| | | | | | | | | | | | | | | | us back into sync.
* | | | One more piece of paranoia when resetting DMApx4dev2013-07-041-1/+3
| | | |
* | | | More test work on the px4io side of the serial interface.px4dev2013-07-044-44/+169
| | | |
* | | | iov2 pin definition cleanup sweeppx4dev2013-07-043-3/+7
| | | |
* | | | Rework the FMU<->IO connection to use a simple fixed-size DMA packet; this ↵px4dev2013-07-031-68/+101
| | | | | | | | | | | | | | | | | | | | | | | | should let us reduce overall latency and bump the bitrate up. Will still require some tuning.
* | | | More implementation for the serial side on IO; fix a couple of bugs on the ↵px4dev2013-06-283-48/+93
| | | | | | | | | | | | | | | | | | | | | | | | FMU side. Still needs serial init and some more testing/config on the FMU side, but closer to being ready to test.
* | | | Checkpoint: interface abstraction for px4io driverpx4dev2013-06-251-35/+9
| | | |
* | | | Merge branch 'master' into fmuv2_bringupLorenz Meier2013-06-103-13/+81
|\ \ \ \ | | |_|/ | |/| |
| * | | Hotfix: Make IOs mixer loading pedantic to make sure the full mixer loadsLorenz Meier2013-06-071-6/+12
| | |/ | |/|
| * | More safety added by disabling pulsesLorenz Meier2013-05-291-1/+3
| | |
| * | Set default failsafe value to 0 of mixerLorenz Meier2013-05-292-1/+41
| | |
| * | Slightly reworked IO internal failsafe, added command to activate it (px4io ↵Lorenz Meier2013-05-283-8/+28
| |/ | | | | | | failsafe), does not parse commandline arguments yet
* | Add serial read-length handling.px4dev2013-05-222-6/+13
| |
* | Merge branch 'fmuv2_bringup' into fmuv2_bringup_io2px4dev2013-05-226-52/+49
|\|
| * Better preflight check, catches wrong RC configs. Needs rework of mavlink ↵Lorenz Meier2013-05-211-8/+0
| | | | | | | | text message API to VARARGs
| * Hotfix: Changed alarms back to what they originally were designed for: Traps ↵Lorenz Meier2013-05-213-4/+1
| | | | | | | | to later see if condition was once violated. Currente status can be read through the status flags
| * Blink pattern fixesLorenz Meier2013-05-131-0/+3
| |
| * Fixed compile and logic errors, behaving nowLorenz Meier2013-05-132-6/+7
| |
| * Fixed led patterns to be up to the latest specsLorenz Meier2013-05-122-14/+15
| |
| * New blink patterns for safety switch, removed GPS lock indicatorLorenz Meier2013-05-092-7/+3
| |
| * px4io: handle errors from adc_measure()Andrew Tridgell2013-05-041-4/+9
| | | | | | | | don't update the voltage/current values on error
| * px4io: changed adc_measure() to return 0xffff on error, and lower timeoutAndrew Tridgell2013-05-041-3/+7
| | | | | | | | | | | | | | | | 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
| * px4io: return raw ADC value for currentAndrew Tridgell2013-05-042-11/+9
| | | | | | | | | | | | 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.