Commit graph

2712 commits

Author SHA1 Message Date
Petr Ledvina
cd88c561a6 Merge remote-tracking branch 'refs/remotes/upstream/master' into feature-timer 2014-11-08 14:25:28 +01:00
Dominic Clifton
848a35ff40 Latest binaries with sbus improvements and some msp/telemetry port usage fixes. 2014-11-08 12:58:27 +00:00
Dominic Clifton
28da97f894 Fix MSP/Telemetry Arm/Disarm problems.
Tested with two MSP ports, one via softserial. Both with telemetry
enabled and without telemetry enabled.
2014-11-08 11:53:01 +00:00
dongie
f42d603b12 Fixing acc_hardware in cli to the new supported sensors range.
Conflicts:

	obj/baseflight.hex
	src/cli.c
2014-11-08 02:06:06 +00:00
Dominic Clifton
8ed45bce36 cli exit command now reboots without saving.
This also prevents excessive wear to the eeprom/flash and makes it the
difference between `save` obvious.

Fixes #146
2014-11-08 01:58:35 +00:00
dongie
9224eaf71e Redo sbus scaling/offset calculation based on data from FrSky X4R and d91ba93b8400ea118cd6fca1012c0ed2da14e3b7. 2014-11-08 01:33:18 +00:00
Dominic Clifton
28662e696a Update SBus channel reading calculations.
Based on baseflight PR#48 by Geobish/Timecop.
2014-11-08 01:32:24 +00:00
Dominic Clifton
0f10855837 Support 16 channel SBus receivers.
Tested with FrSky X4RSB and Taranis+.

See also: https://github.com/opentx/opentx/issues/1701
2014-11-08 01:12:51 +00:00
Dominic Clifton
2461973dd6 There was a little more fixed to do when telemetry was not eanbled.
Tested arm/disarm/arm/disarm with telemetry on and off, all working now.

See #155.
2014-11-08 01:11:10 +00:00
Petr Ledvina
aa7f5c4a1e New timer implementation
This is first part of new softserial code. Main timer code is changed, changes to rest of code are kept to minimum.

macros for BASEPRI based synchronization are added to project (atomic.h)

TIMER_PERIOD fixed in pwm_rx.c
2014-11-07 15:38:26 +01:00
Pierre-A
caf81ad640 RSSI monitoring on CC3D 2014-11-07 09:23:54 +01:00
Dominic Clifton
2c8b3af88d Merge branch 'Pierre-A-naze-updates-pb' 2014-11-06 19:52:21 +00:00
Dominic Clifton
903392b883 Updating comment. 2014-11-06 19:52:10 +00:00
Dominic Clifton
59698c5a37 Merge branch 'naze-updates-pb' of github.com:Pierre-A/Cleanflight into Pierre-A-naze-updates-pb 2014-11-06 19:44:39 +00:00
Dominic Clifton
feb4be43d4 Merge pull request #150 from Pierre-A/naze-updates-pa
RSSI_ADC configurable scale in CLI
2014-11-06 20:43:16 +01:00
Dominic Clifton
dc3b90c5d0 Merge pull request #157 from ledvinap/fix-whitespace
Fixed some whitespace around operators
2014-11-06 20:41:54 +01:00
Petr Ledvina
8d22a85222 Fixed some whitespace around operators
one compiller warning about possible uninitialized variable supressed
2014-11-06 17:36:40 +01:00
Dominic Clifton
d2e895ac93 Cleanup pinout tables in CC3D documentation 2014-11-06 10:12:38 +00:00
Dominic Clifton
1c545fdf9e Latest binaries. 2014-11-05 22:41:46 +00:00
Dominic Clifton
30c550b83d CC3D - Support 4 PWM inputs and 4 PWM outputs.
Avoid timer clashes on CC3D when using Parallel PWM input.

More work needs to be done on the PWM RX/Output code to negate timer
clashes.
2014-11-05 22:32:44 +00:00
Dominic Clifton
2d119cba78 Fix softserial/pwm timer clash caused by typo in preprocessor defines.
See 91c7407806

Fixes #143.
2014-11-05 21:05:57 +00:00
Dominic Clifton
db36cfe12e Fix arm/disarm/arm bug when using shared msp/telemetry ports.
All msp ports are now re-initialised when disarming.

Bug wa introduced by c06fd78b83 - see
#144.

Runtime serial port scenario should not have been erased.

Fixes #144 and #155. Cleanup #125.
2014-11-05 20:23:59 +00:00
Dominic Clifton
2d7184b25b Merge pull request #156 from ledvinap/feature-nvic
NVIC priority change
2014-11-04 17:30:50 +01:00
Petr Ledvina
bf50cbb1a8 NVIC priority change
Use 'better' macros to handle priority. This simplifies passing priority to function and new ATOMIC_BLOCK macro
2014-11-04 16:23:21 +01:00
Dominic Clifton
503e7a0817 Decouple altitudehold.c from config.c. Update flight_imu_unittest and
altitude_hold_unittest.
2014-11-03 20:03:21 +01:00
Pierre-A
d545ab545f Remove profanity from comments (issue #43) 2014-11-02 14:53:57 +01:00
Dominic Clifton
f8b13d7c62 Update unittest_flight_imu. 2014-11-01 11:10:57 +00:00
Dominic Clifton
21e9b0b537 Update battery_unittest. 2014-11-01 11:06:24 +00:00
Dominic Clifton
6efa63b8bd Update telemetry_hott_unittest. 2014-11-01 11:04:39 +00:00
Dominic Clifton
8f196420ca Fix unit test compiler warnings on rc_controls_unittest 2014-11-01 10:50:30 +00:00
Dominic Clifton
715c175aad Add basic MPU6000 auto detection code. De-duplictate repeated code in
MPU6000.
2014-11-01 10:45:44 +00:00
Dominic Clifton
0ba2933611 Add MSP_SET_ADJUSTMENT_RANGE and MSP_ADJUSTMENT_RANGES commands. 2014-11-01 10:24:32 +00:00
Dominic Clifton
ec92a8e6ba Avoid unused variable warning for targets with no beeper. 2014-11-01 09:15:33 +00:00
Dominic Clifton
00e0bf806a Adding a compile to option to allow users to compile with serial port 1
and 2 defaults switched.

This is helpful if you fry a serial port.

Compile with `OPTIONS=SWAP_SERIAL_PORT_1_AND_2_DEFAULTS`.
2014-10-31 21:00:53 +00:00
Pierre-A
3592429ed5 RSSI_ADC configurable scale in CLI 2014-10-30 21:29:56 +01:00
Dominic Clifton
84384e61af Ensure control rate profiles get initialised correctly. 2014-10-30 00:22:37 +00:00
Dominic Clifton
00ca237886 Rename default_rateProfile_index to defaultRateProfileIndex. 2014-10-29 23:56:28 +00:00
Dominic Clifton
ef7f5321da Add Profile OLED display page that shows the current profile and rate
profile.
2014-10-29 23:55:12 +00:00
Dominic Clifton
28f9fa629c Add rate profiles and inflight switching between them. See Profiles and
Inflight Adjustment documentation for details.
2014-10-29 23:36:34 +00:00
Dominic Clifton
cac814923c Update RC Controls so that functions with different modes can be
applied.  The existing modes are 'step'.  A new mode is 'select'.

The other unit tests need fixing up so that appropriate code is compiled
as C and not C++ code.
2014-10-29 20:52:44 +00:00
Dominic Clifton
e22b37026c Updating CC3D docs. 2014-10-29 19:48:43 +00:00
Dominic Clifton
8f80f86bc9 Reduce serial port memory usage.
The largest MSP command is 160 bytes.
2014-10-29 19:18:51 +00:00
Dominic Clifton
5a4035fa2f Latest binaries. 2014-10-29 11:15:08 +00:00
Dominic Clifton
45218357fa Narrow LED strip indicator deadband so that indicators are displayed for
smaller pitch/roll input movements.
2014-10-29 01:05:01 +00:00
Dominic Clifton
d76a414985 Ensure each serial port has enough buffer space to write out the largest
MSP response.
2014-10-29 00:52:00 +00:00
Dominic Clifton
6dde141b66 CC3D - Correct the documentation. 2014-10-28 17:17:27 +00:00
Dominic Clifton
af84800f21 Merge pull request #147 from Pierre-A/cc3d-updates-1
Update CC3D Softserial documentation
2014-10-28 16:24:36 +00:00
Dominic Clifton
3d7455d557 Fixed magAlign, reconfigureAlignment was being called before mag
detection.  Closes #101.
2014-10-28 16:09:44 +00:00
Dominic Clifton
a65a937313 STM32F3 - Fix uartReconfigure. Closes #125. 2014-10-28 15:55:07 +00:00
Dominic Clifton
c06fd78b83 Fix being unable to change port function of serial port during runtime.
Closes #144.

Thanks @frank26080115
2014-10-28 15:49:02 +00:00