Commit Graph

3638 Commits

Author SHA1 Message Date
Nicholas Sherlock 84d3cc6175 Basic SDCard block read / write (minimal timeout/error handling) 2016-02-02 23:36:32 +01:00
Nicholas Sherlock 3941c6c252 Delete dubious SPI timeout mechanism
The result from this mechanism is never checked, and SPI is not a bus
prone to timeouts anyway (the master generates the clock and the
transmission happens in a deterministic amount of time no matter if the
slave is cooperative, absent, or uncooperative.)

The timeout counter was set *per transfer*, and is fixed no matter what
the SPI clock speed. If the transfer size is large, and the SPI clock is
slow, stalls on the SPI bus are unavoidable (as we can generate data
faster than SPI can transmit it). These accumulate over the length of a
long transfer and trigger a "timeout". Detecting these as fatal timeouts
is not helpful.
2016-02-02 23:36:31 +01:00
Nicholas Sherlock 264c094eef Add ability to check for SPI bus busy condition 2016-02-02 23:36:31 +01:00
Dominic Clifton 77f0fb716d Fix MPU6500 bypass configuration. 2016-02-02 23:36:30 +01:00
Dominic Clifton 180e1cb7b6 SPRacingF3Mini - Quick hack to allow configuration to be reset when
holding buttons A and B down for 5 seconds when powering on.
2016-02-02 23:36:30 +01:00
Dominic Clifton b030d494c8 SPRacingF3Mini - Change configuration defaults. 2016-02-02 23:36:30 +01:00
Dominic Clifton 0ef8f08f10 SPRacingF3Mini - Enter spektrum bind mode when button A is pressed on
cold boot.
2016-02-02 23:36:29 +01:00
Dominic Clifton 680acc518f SPRacingF3Mini - Clarify timer usage. 2016-02-02 23:36:29 +01:00
Dominic Clifton 52d97869b8 SPRacingF3Mini - Initial support for new target. 2016-02-02 23:36:28 +01:00
Dominic Clifton 7f398cbe4b Cleanup sdcard info messaging. 2016-02-02 23:36:27 +01:00
Dominic Clifton 8f461b3942 Allow SD card detect signal to be inverted. 2016-02-02 23:36:27 +01:00
Dominic Clifton 4b955f09da SDCard - Basic functionality.
Detect card, query capacity, read data.
2016-02-02 23:36:26 +01:00
Dominic Clifton b1ba72c162 Update MPU6050 so it works with later versions. 2016-02-02 23:36:26 +01:00
Michael Hope cf7c9d4100 cli: add buffering.
This greatly speeds up the CLI when running over USB VCP under a
virtual machine.

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:26 +01:00
Michael Hope 195456f9ac serial: allow buffering to speed up USB virtual COM ports.
Add begin write and end write hints.  If implemented by the serial
driver, then the driver can buffer up data sent via serialWrite() and
flush it when serialEndWrite() is called.

Implemented at the buffer level as it requires the least change to how
serial_msp and serial_cli are architected.

Also tidy up the visibility in the VCP driver.

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:25 +01:00
Michael Hope 0e460c18b0 msp: add buffering around the writes.
This bulks up the writes and lets the USB VCP driver send one 20 byte
frame instead of 20 one byte frames.  This speeds up the blackbox
download and makes VCP much more reliable when running under a virtual
machine.

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:25 +01:00
Michael Hope 96306ff9ab serial: add writeBuf() and implement for USB.
This lets USB send up to 32 bytes in a frame instead of 32 one byte
frames.  Add a fallback for drivers that don't implement writeBuf().

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:24 +01:00
Michael Hope 75c86825f7 drivers: add a buffering writer.
This wraps around the serial API and buffers a configurable number of
characters before flushing.

Signed-off-by: Michael Hope <mlhx@google.com>
2016-02-02 23:36:24 +01:00
Dominic Clifton 0344fa22f4 Syncronsise I2C timeouts of F1 and F3 targets 2016-02-02 23:36:24 +01:00
borisbstyle 35defbb27b Sonar merge 2016-02-02 23:36:23 +01:00
Dominic Clifton 75cd1d88eb CHEBUZZF3 - Enable I2C display support. 2016-02-02 23:36:23 +01:00
Dominic Clifton 85f7b10e24 Fix some F3 target compilation issues.
Remove LED_STRIP support from AlienWiiF3 target.  It was using sparky
source but Sparky has led strip signal on a PWM motor output due to
hardware mappings and that doesn't make sense for the AlienWiiF3 target
which is has brushed motor circuitry.
2016-02-02 23:36:22 +01:00
Dominic Clifton e7620727ff Fix led strip unit test compilation warning. 2016-02-02 23:36:22 +01:00
Nicholas Sherlock 38d285889b Clarify SDCard filled procedure 2016-02-02 23:36:22 +01:00
borisbstyle 5449eeadaf Update README.md 2016-02-02 23:31:58 +01:00
borisbstyle 3ab7798e14 Update Readme 2016-02-02 23:31:58 +01:00
KiteAnton c072ac265c Change OFF to NONE 2016-02-02 23:31:58 +01:00
KiteAnton 6226ea4b98 Table lookup for hardware settings 2016-02-02 23:31:57 +01:00
kamaloo c767fe8e1e Move dT scaling before filtering
From DSP point of view scaling by dT before filtering is more correct. This should yield less delta noise with noisy dT values. BiQuad/Moving average adds some delay to data so current dT is not valid for current filter output.
2016-02-02 23:31:57 +01:00
Read Error 35125ecf10 Sorry, it should be on USART3. 2016-02-02 23:31:56 +01:00
Read Error 1740291d26 Move 1wire to USART2 2016-02-02 23:31:56 +01:00
Anders Hoglund 453bdf77ef Firmware version added to build artifacts. 2016-02-02 23:31:56 +01:00
Michael Jakob 7634e4c635 AlienFligth F3 V2 support
Updated SPI driver (SPI3 on F3 targets)
AK8963 Mag support (part of MPU9250)
MPU9250 SPI support via MPU6500 driver
Updated LED driver for alternative LED sets
Enable gyro intterupt for AlienFlight F3 targets
Update AlienWii/AlienFlight documentation
Rename AlienWii to AlienFlight
2016-02-02 23:31:55 +01:00
cmenard b1476c05f8 Correct RX_Serial port and spektrum_sat_bind 2016-02-02 23:31:55 +01:00
borisbstyle 3433dc74b6 fix version 2016-02-02 23:31:54 +01:00
cmenard d174314692 Add Lux target 2016-02-02 23:03:08 +01:00
borisbstyle e973bb149f Bump patch version 2.3.5 2016-02-02 22:50:21 +01:00
borisbstyle 06b3f625d1 Airmode Saturation fix // Needed for some setups 2016-02-02 22:48:52 +01:00
borisbstyle 17f214d2ab Bugfix for brushed motor support 2016-01-26 13:43:23 +01:00
borisbstyle 42bc172abc New Defaults // Rc smoothing always enabled in level modes 2016-01-25 23:53:47 +01:00
borisbstyle 112543efb2 Add alternative delta approach (set delta_from_gyro = ON) 2016-01-25 23:22:18 +01:00
borisbstyle b9fb178237 Moving average for D when no filter 2016-01-25 22:15:12 +01:00
borisbstyle 55cf3913a0 3D Airmode enhancements // Iterm Shrinking replaced to limiting 2016-01-25 12:08:33 +01:00
borisbstyle b86f304dec Bump version to 2.3.4 2016-01-25 12:08:33 +01:00
borisbstyle eac5a96e4a Fix assymetric issue acro plus 2016-01-20 11:31:33 +01:00
borisbstyle ac2ed9fbf1 New beginners defaults 2016-01-20 00:15:53 +01:00
borisbstyle 892778a08e Airmodeplus itermscaling more agressive // Remove from level modes 2016-01-20 00:15:48 +01:00
borisbstyle b5dcbbed25 Airmode mixer rework // Fix stopping motors caused by 3D feature 2016-01-19 21:50:42 +01:00
borisbstyle 782482bf76 Activate Air mode in Neutral State for 3D feature
Fix init
2016-01-19 14:17:36 +01:00
borisbstyle 95177c027e Bump Version to 2.3.3 2016-01-18 23:51:55 +01:00