Commit graph

523 commits

Author SHA1 Message Date
Dominic Clifton 8a69077a7f Remove outdated note regarding MSP telemetry from documentation.
Thanks stronnag.
2014-09-29 22:01:19 +01:00
Gareth Wilkins 775d312a32 Minor documentation amends
Post proofing amends
2014-09-26 21:59:10 +01:00
pulsar256 beb52737da fixed formatting 2014-09-26 20:34:29 +02:00
pulsar256 de2cfd3060 added manual building guide 2014-09-26 20:33:47 +02:00
pulsar256 62d9781b4b do not include generated pdf in the repo 2014-09-26 20:12:06 +02:00
pulsar256 403119bfad using a fixed order of md files for pdf conversion 2014-09-26 20:07:31 +02:00
pulsar256 679a38c6ee dedicated folder for developer docs 2014-09-26 20:00:50 +02:00
pulsar256 04e97f5b35 dedicated folder for developer docs 2014-09-26 19:56:17 +02:00
pulsar256 e944e1dfd7 Replaced diagram image with a scaled down png 2014-09-26 19:38:56 +02:00
pulsar256 67728b1581 Manual-Generation (*.md -> pdf) via Gimli 2014-09-26 19:37:28 +02:00
pulsar256 9ca1775871 Embedded Crius CO-16 Modification Images 2014-09-26 19:04:46 +02:00
Dominic Clifton 366c7d2e2d Updating documentation. 2014-09-26 16:29:48 +01:00
Dominic Clifton a4c21b5e57 SUMH - Initial cut of support for Graupner SUMH Serial RX protocol. 2014-09-20 09:39:42 +01:00
Dominic Clifton 7225bd0f24 Updating example LED STRIP documentation config for Spider quad.
Left-front rear-facing LEDs were not configured correctly.
2014-09-20 01:32:36 +01:00
Dominic Clifton 9c87b99f5f CC3D - Add Buzzer support to PA15.
See Docs for details.
2014-09-19 21:35:30 +01:00
Dominic Clifton 41ff2e8d0e CC3D - Add support for battery voltage monitoring on S5_IN.
See docs for further details.
2014-09-19 21:16:40 +01:00
Dominic Clifton f591732aa9 Updated LedStrip docs for new thrust/throttle mode. 2014-09-19 20:16:07 +01:00
Dominic Clifton 74156fe18f Updating RX documentation. 2014-09-18 19:23:32 +01:00
Dominic Clifton f7daf5ade2 Add a a configuration section to the OLED display documentation. 2014-09-16 01:48:02 +01:00
Dominic Clifton d60183d91d Normalize all the line endings 2014-09-15 23:40:17 +01:00
Dominic Clifton 876cf6bdd7 Merge branch 'master' into oled-ssd1306
Conflicts:
	src/main/common/printf.c
	src/main/main.c
	src/main/sensors/initialisation.c
	src/main/target/NAZE/target.h
2014-09-15 23:36:17 +01:00
Dominic Clifton a287f9247d Allow led strip to show failsafe state. Closes #76. 2014-09-15 23:24:08 +01:00
Dominic Clifton 99a296821a Update default led strip config so there is always an orientation light
on at the front when the battery alarm is on.
2014-09-15 20:24:00 +01:00
Dominic Clifton 460256cc23 Fix typo in led strip documentation. 2014-09-15 03:20:39 +01:00
Dominic Clifton 6ce5736990 Update LED strip code to allow configurable LED strips.
See documentation for details.
2014-09-15 03:15:11 +01:00
Dominic Clifton c1569d6319 Add OLED documentation. 2014-09-12 21:56:34 +01:00
Dominic Clifton c41d28c5dc Mention Flip32+ in sonar docs. 2014-08-13 22:04:48 +01:00
Dominic Clifton d0338eac19 Cleanup sonar support for Naze/Flip32/Olimexino. Add Sonar
documentation.
2014-08-13 22:01:39 +01:00
Dominic Clifton 5871f90465 Adding buzzer documentation. 2014-08-07 20:55:38 +01:00
Dominic Clifton de64e19db7 Adding CC3D and Naze32 preliminary docs. 2014-08-07 20:42:48 +01:00
Dominic Clifton 8c6c14b343 Update documentation. 2014-08-07 20:21:16 +01:00
Dominic Clifton 0ac2b51c60 Make ppm/pwm input filtering configurable. 2014-07-30 22:02:34 +01:00
Dominic Clifton f8a1ca55fc Updating todo list. 2014-07-16 01:37:16 +01:00
Dominic Clifton 6ea447b777 Update LED documentation to reflect the current implementation. 2014-07-16 01:36:51 +01:00
Dominic Clifton 9afcb20b7e Cleanup mismatch of buzzer/beeper terminology. Beep and Beeper should
be used from now on.
2014-06-21 23:32:58 +01:00
Dominic Clifton ed3e0769cf Renamed alt_hold_throttle_neutral to alt_hold_deadband for consistency. 2014-06-21 22:40:30 +01:00
Dominic Clifton 6f718757b1 Merge branch 'ws2811' 2014-06-09 19:12:37 +01:00
Dominic Clifton eea615c0aa Update developer TODOs. 2014-06-09 19:12:08 +01:00
Dominic Clifton 1730e3dfd3 Relocated led strip user code into separate file.
Added documentation.

Added LED_STRIP feature, can only be enabled under certain circumstances
depending on target due to pin/timer mappings - see documentation.
2014-06-09 19:11:31 +01:00
Dominic Clifton 5f4a464f50 Updating basflight migration instructions. 2014-06-06 21:42:28 +01:00
Dominic Clifton fabd376f41 Allow GPS SBAS mode to be configurable.
It was noticed that GPS startup time increased when the change was made
from using EGNOS by default to using AUTO by default.

The default is still AUTO but faster GPS startup times may be achieved
by telling the GPS receiver what region you are in.

This also removes more unfinished MTK gps provider support.
2014-06-03 13:38:41 +01:00
Dominic Clifton 3e0370ff09 Updating known issues. 2014-06-01 19:29:38 +01:00
Dominic Clifton 350b6a5864 Updating CLI commands for consistency. 2014-06-01 19:29:11 +01:00
Dominic Clifton dcbb82c845 Update Development.md 2014-05-28 20:13:06 +01:00
Dominic Clifton d0ec7e25ce Merge branch 'master' into autotune
Conflicts:
	obj/cleanflight_CHEBUZZF3.hex
	obj/cleanflight_NAZE.hex
	obj/cleanflight_OLIMEXINO.hex
2014-05-28 13:37:40 +01:00
Dominic Clifton 5484e5fddd Replace PWM RSSI with ADC RSSI.
The primary reason is to support the D4R-II with it's much faster PWM
frequency.  The PWM RSSI code could not keep up, and since there are no
timers free for using capture compare of PWM signals in hardware one
solution is to use the ADC at a slow sample rate.

RC2 is used as before and it expects a signal between 0 and 3.3v.  An
inline smoothing capacitor may help.

This commit also removes the cli command adc_power_channel since the
reading was never actually exposed anywhere.
2014-05-28 03:30:53 +01:00
Dominic Clifton bc84f6d5d4 Update autotune so it now actually changes the pid values.
This commit also fixes a few missing const keywords after the map file
was inspected.
2014-05-27 21:20:29 +01:00
Dominic Clifton f7c38af7fc Initial commit for implementation of autotune. 2014-05-27 18:11:55 +01:00
Dominic Clifton 49c283fe59 Update Failsafe.md
formatting.
2014-05-27 18:11:54 +01:00
Dominic Clifton f74a31f800 Update Failsafe.md 2014-05-27 18:11:54 +01:00
Dominic Clifton f61232de13 Update Failsafe.md
formatting.
2014-05-26 19:59:21 +01:00
Dominic Clifton 2bbbd05cc7 Update Failsafe.md 2014-05-26 19:54:30 +01:00
Dominic Clifton d5bb662139 Merge pull request #15 from nico-dh/master
adding doc for building in windows
2014-05-25 16:18:17 +01:00
grunbaum nicolas 9a085bebad addind doc for building in windows
Signed-off-by: grunbaum nicolas <grunbaum@gmail.Com>
2014-05-25 15:27:58 +02:00
Dominic Clifton 1df79e65fc Updating telemetry documentation. 2014-05-25 03:29:47 +01:00
Dominic Clifton 6dc88355b2 Updating developer docs. 2014-05-25 02:53:26 +01:00
Dominic Clifton 49781b5080 Updating documentation. 2014-05-24 21:04:30 +01:00
Dominic Clifton d928404919 Updating Development docs. 2014-05-24 17:55:48 +01:00
Dominic Clifton 1925df26ca Add RSSI PWM on CH2 input.
Also support FrSky 1khz RSSI.  See documentation also added in this
commit.

This commit also cleans up the PWM mapping code.  'mask' didn't need to
be a mask and it wasn't possible to add another 'type' since there were
only 4 possible values when it was a mask and they were already defined.  
Combined with switching to using 16 bits instead of 8 for the mapping
configurations, it's now possible to have 256 types instead of 4 at the
expense of a few bytes of flash.

Moved the RSSI calculation into rx_common.c, previously it was in the
main loop.
2014-05-24 00:01:59 +01:00
Dominic Clifton f232b831d2 Replace cli command gps_initial_baudrate_index with gps_baudrate.
The index is not really a user concern and leads to confusion.  gps
baudrate is not set like any other baud date and the determination of an
appropriate index is hidden from the user.

If the user specifies a baudrate that is not supported the default index
is used which is current the index for 115200.

This also allows GPS to work on softserial ports at up to 19200.
2014-05-23 11:54:00 +01:00
Dominic Clifton d6c1ce323d BUGFIX - Warning LED / arm prevention code fixes.
The old code was using f.ACC_CALIBRATED to mean 'flash the warning led'
and 'prevent arming'
There was another flag called f.OK_TO_ARM which really meant 'prevent
arming after failsafe unless using a switch to arm' - this meant the
comment in the code was incorrect since it did not mention the switch.
There was code which every ~71 minutes would set f.ACC_CALIBRATED to
FALSE and would toggle the LED, even when flying.
There was code that was run during every cycle that did not need to be
run when armed.
There was code that was run during every cycle which did not need to be
run when waiting for calibration to finish.
The warning light was toggled regardless of actual accelerometer
calibration state.

This commit fixes all that and prevents the user from arming after a
failsafe landing until the system is reset, regardless of wether a
switch is used to arm or not.

This commit also flashes the warning led during barometer calibration
and will not let you arm until it has completed.

Add a 5 second delay on startup to failsafe to prevent failsafe from
activating in the case of TX/RX gear with long bind procedures before
they send out valid data.

Failsafe now only prevents re-arming if a landing was forced.

In the case when you power on your RX without your TX on the beeper
sounds and failsafe warning ligts are activated.  When the FC then
detects a signal the lights go off and you can then arm.
2014-05-22 22:46:54 +01:00
Dominic Clifton b37bace5c1 HoTT update.
There's a number of changes in this commit, all related.

Improved efficiency of preparing HoTT messages.

All HoTT message data is no-longer reset each time, going forward old
data is re-used unless it is updated.  This should help with GPS
co-ordinates too since they were erased from subsequent responses when
ideally the last-known co-ordinates should be transmitted each time.

The previous update was sending one too many bytes due to the
aligned/padded uint16_t values in the HoTT data structures.  There were
two solutions, use #pragma to pack the structure or avoid larger types
in the structures, the latter made sense and results in more portable
code since it's a wire format.

Updated HoTT structures to use latest message structure from Ardupilot.
Currently the variables are in underscore_format, that will likely
change in future.

Cleaned up and deleted old ported code that was #ifdef'd out.  Some test
code still remains for now.  This will be deleted in due course.

Introduced bitmask for EAM alarm flags.

Corrected documentation.
2014-05-22 17:25:51 +01:00
Dominic Clifton a2531722f3 Adding Development documentation. 2014-05-22 12:42:39 +01:00
Dominic Clifton 1e357f7966 Moving telemetry documentation to it's own file. 2014-05-21 21:41:29 +01:00
Dominic Clifton 451b132764 Updating configuration examples to include HoTT via softserial. 2014-05-21 21:29:36 +01:00
Dominic Clifton 420ba7d2c9 Fix HoTT telemetry to use a 3ms delay between each transmitted byte.
This has fixed HoTT telemety data on my GR-24, previously it was a bit
intermittent.

This commit also marks a test-point, HoTT works on UART2.

Reference:
https://code.google.com/p/hott-for-ardupilot/source/browse/APM/Hott.pde#510
2014-05-20 17:33:39 +01:00
Dominic Clifton 032202ef8f BUGFIX - Cleanup failsafe system so it works correctly with Serial RX
systems and Parallel PWM/PPM systems.

Added setting for failsafe_max_usec.  Renamed failsafe_detect_threshold
to failsafe_min_usec.

Failsafe now detects when a PPM/PWM RX isn't sending ANY data out on
CH1-4.  See documentation notes regarding Graupner receivers in
Failsafe.md.

Documented failsafe system.
2014-05-15 14:28:57 +01:00
Dominic Clifton 21207ca940 Improvement: Add support for upto 18 channels. Allow RSSI to be read
from any channel, not just AUX1-4.

See documentation changes in this commit.
2014-05-14 19:23:27 +01:00
Dominic Clifton 4d572800ee Documentation formatting. 2014-05-13 15:08:33 +01:00
Dominic Clifton 22a5e4ceae Updating documentation. 2014-05-12 13:48:57 +01:00
Dominic Clifton 5d460766e9 RXMSP is no longer a serial rx provider since it uses MSP and not it's
own dedicated serial port.
Added a feature to enable/disable RX_MSP.
Renamed feature SERIALRX to RX_SERIAL.
Renamed feature PARALLEL_PWM to RX_PARALLEL_PWM
Renamed PPM to RX_PPM.

Update serial configuration checking to better support Serial RX and
telemetry by verifiying serial port features and supported baud rates.

It's now possible to use a low-speed serial rx provider via softserial -
only problem is all the current serial rx providers are 100000/115200
baud.  The code changes however open the door for using serial rx and
any capable serial port such as uart3-5 on the STM32F30x

It's also now possible to use GPS at low speeds on software serial
ports.
2014-05-12 13:23:20 +01:00
Dominic Clifton bf90246c95 Add callback support to software serial.
Also fixed problem with shared serial port detection.
2014-05-10 16:12:26 +01:00
Dominic Clifton 0fd127bf60 Allow the user to specify their serial port scenarios. 2014-05-10 14:11:01 +01:00