1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 07:15:18 +03:00
Commit graph

14917 commits

Author SHA1 Message Date
Dominic Clifton
3b77626dd8 Only enable VBat ADC when VBat feature is enabled.
Fixes #612
2015-03-13 22:28:10 +01:00
Dominic Clifton
8fcffa1454 Merge pull request #616 from ledvinap/fix-small-angle
Fix small_angle type to match CLI
2015-03-13 13:52:06 +01:00
Petr Ledvina
59df4e502b Fix small_angle type to match CLI
int8_t small_angle prevents using angles>128deg (and thus disabling it with small_angle=180)
2015-03-12 15:25:30 +01:00
Dominic Clifton
fce1d5a680 Bump MSP API version for recent MSP_RC_TUNING changes. 2015-03-11 22:40:10 +01:00
Jenny
40cc7697fe Update to Virtual Current Meter fix
now using rc_controls/calculateThrottleStatus()
unneeded dependencies removed.
2015-03-11 20:03:25 +00:00
Dominic Clifton
f62b5c883d Merge pull request #601 from tricopterY/tricopterY-patch-1
Update serial_msp.c
2015-03-11 20:15:24 +01:00
Jenny
7c2a2a1732 Merge remote-tracking branch 'upstream/master' into VCM_motor_stop_fix 2015-03-11 18:43:29 +00:00
Dominic Clifton
2c79d777bc Merge pull request #605 from ledvinap/fix-batterytest-merge
Fix incorrect merge in battery_unittest
2015-03-11 08:35:06 +01:00
Nicholas Sherlock
cee021706b Merge remote-tracking branch 'upstream/master' into blackbox-serial-baud 2015-03-11 13:31:30 +13:00
Dominic Clifton
4746b336b9 Tweak to GPS page to show when Space Vehicle updates are received via a
ticker next to the bargraphs which updates each time SV info is
received.

Some code-size improvements optimizations could be done.
2015-03-10 23:01:06 +00:00
Petr Ledvina
f1a0972002 Fix incorrect merge in battery_unittest
batteryConfig initialization was merged twice, removing one version
2015-03-10 08:32:36 +01:00
tricopterY
ced280acb9 Update serial_msp.c
Enhanced MSP_RC_TUNING and MSP_SET_RC_TUNING. Configurator's PID Tuning tab can be enabled to update TPA Breakpoint.  
PID Tuning tab must be enhanced for this feature. Agnostic if older versions of Configurator are used.
2015-03-10 10:40:56 +11:00
Dominic Clifton
bc8e53a9d8 Rename some PID controller methods.
See #461.
2015-03-09 23:26:52 +00:00
Dominic Clifton
d8cd9f239c Merge pull request #437 from tracernz/nmea-satdata
Add NMEA Signal Quality
2015-03-10 00:18:47 +01:00
Dominic Clifton
c0c2f8e285 Remove a suprious newline. 2015-03-09 23:04:54 +00:00
Dominic Clifton
4a12d00d1e Moving mixer config out of the profile. It doesn't really make sense. 2015-03-09 23:00:44 +00:00
Dominic Clifton
ed434fe47b Use a positive named setting and variable instead of a negative one to
simplify the logic and aid understanding.
2015-03-09 22:50:27 +00:00
Dominic Clifton
acabbf41db Previously, at minimum throttle, the quad would do absolutely no self-leveling
and simply run the motors at constant minthrottle.  This allowed the chance
for the quad to lose control during flight if the throttle was set to minimum,
say, to drop from a high altitude to a lower one.

With this edit, the quad will still self-level at minimum throttle when armed,
allowing for safe decents from altitude.  To prevent motors spinning when
arming/disarming, the yaw input is ignored if the throttle is at minimum and
we're using the sticks to arm/disarm.

Conflicts:
	src/main/flight/mixer.c
2015-03-09 23:44:53 +01:00
Dominic Clifton
1b1163da10 Previously, at minimum throttle, the quad would do absolutely no self-leveling
and simply run the motors at constant minthrottle.  This allowed the chance
for the quad to lose control during flight if the throttle was set to minimum,
say, to drop from a high altitude to a lower one.

With this edit, the quad will still self-level at minimum throttle when armed,
allowing for safe decents from altitude.  To prevent motors spinning when
arming/disarming, the yaw input is ignored if the throttle is at minimum and
we're using the sticks to arm/disarm.

Conflicts:
	src/main/flight/mixer.c

added cli command disable_pid_at_min_throttle

(same as previous)
2015-03-09 23:42:42 +01:00
Dominic Clifton
5e3734946e # This is a combination of 2 commits.
# The first commit's message is:

Previously, at minimum throttle, the quad would do absolutely no self-leveling
and simply run the motors at constant minthrottle.  This allowed the chance
for the quad to lose control during flight if the throttle was set to minimum,
say, to drop from a high altitude to a lower one.

With this edit, the quad will still self-level at minimum throttle when armed,
allowing for safe decents from altitude.  To prevent motors spinning when
arming/disarming, the yaw input is ignored if the throttle is at minimum and
we're using the sticks to arm/disarm.

Conflicts:
	src/main/flight/mixer.c

# This is the 2nd commit message:

added cli command disable_pid_at_min_throttle
2015-03-09 23:36:54 +01:00
Dominic Clifton
e40a3663d2 Remove failsafe vtable usage. 2015-03-09 23:19:21 +01:00
Dominic Clifton
60a95f1d22 Removing noise from unit tests. 2015-03-09 23:19:21 +01:00
Dominic Clifton
bce6c6722c Merge branch 'port-changes' of https://github.com/ledvinap/cleanflight into ledvinap-port-changes
Conflicts:
	src/main/blackbox/blackbox.c
	src/main/io/serial.c
2015-03-09 22:23:04 +01:00
Damjan Adamic
517d38c94f Re #316: Battery voltage calculation converted to integer arithmetic, unit tests updated to account for proper rounding of voltage
Added frsky_hiprec_vfas configuration option that selects how VFAS is sent
Better arithmetics for FrSky CELL voltages, VFAS battery voltage send with other ID that allows 0.1V resolution
2015-03-09 20:43:04 +01:00
Dominic Clifton
9d0e464aaf Updating unit tests to match roll/pid/yaw rate decoupling. 2015-03-08 00:51:29 +00:00
Dominic Clifton
2e5fe06a6a Update AlienWii32 defaults for pitch/roll/yaw rates 2015-03-08 00:48:47 +00:00
Dominic Clifton
e4a6886266 Allow independent in-flight adjustment of roll and pitch. 2015-03-07 15:14:52 +00:00
Dominic Clifton
b595b49ca8 Decouple roll and pitch rates. MSP clients take note of updated
MSP_RC_TUNING/MSP_SET_RC_TUNING commands.
2015-03-07 15:11:20 +00:00
Dominic Clifton
26bb86898e Updating comment in mixer.c 2015-03-07 14:15:38 +00:00
Nicholas Sherlock
3b5d2b6a16 Change recommended Blackbox baudrate to 250000
This is because the AVR's 230400 baudrate is very inaccurate, while the
250000 baudrate is spot-on.
2015-03-07 13:07:03 +13:00
Dominic Clifton
4d1060f87b Merge pull request #591 from nebbian/bugfix-tricopter-3d
Bugfix for 3D inverted flight using a tricopter.
2015-03-06 16:49:52 +00:00
Dominic Clifton
e9742c124c Merge pull request #594 from sherlockflight/mag-limit
Fix upper limit on mag_hardware and acc_hardware CLI variables
2015-03-06 16:42:54 +00:00
Nicholas Sherlock
5e917090b6 Merge remote-tracking branch 'upstream/master' into blackbox-serial-baud 2015-03-07 02:01:03 +13:00
Nicholas Sherlock
0c8adf25c2 Use defines for MAG_MAX and ACC_MAX 2015-03-07 01:57:45 +13:00
Nicholas Sherlock
8a541a9fa2 Fix upper limit on mag_hardware and acc_hardware CLI variables 2015-03-07 01:18:05 +13:00
Nicholas Sherlock
99fe3465b2 Support configurable Blackbox baud rates, allows >750Hz logging 2015-03-06 20:08:05 +13:00
Nicholas Sherlock
cbaa67f1d0 Add 230400 & 250000 baud rates, 2 stop-bits port mode 2015-03-06 20:07:07 +13:00
Pierre-A
3a8725997b update of the corrections 2015-03-05 20:07:48 +01:00
Jenny
0d1ca47617 bigfix virtual current meter 2015-03-05 18:24:23 +00:00
Dominic Clifton
d51a2fbd88 Fix release of MSP port when MSP and MSP telemetry are used on the same
port.
2015-03-05 11:04:25 +00:00
Dominic Clifton
0b1de28e95 Merge remote-tracking branch 'cleanflight/sbus-rx-failsafe' 2015-03-04 20:37:47 +00:00
Pierre-A
af2cd4087a new version including corrections 2015-03-04 15:53:09 +01:00
Dominic Clifton
3e73b3de53 Add some const correctness to mag initialisation.
See #582.
2015-03-04 09:04:59 +00:00
Dominic Clifton
3a35bfbabf Merge pull request #582 from sherlockflight/compass-init
Fix invalid memory read during compass initialisation
2015-03-04 08:57:57 +00:00
Nicholas Sherlock
b6991b57a0 Fix invalid memory read during compass initialisation 2015-03-04 20:46:13 +13:00
Dominic Clifton
1c9ebf9437 Use received Serial RX data even when serial rx reports failsafe. 2015-03-03 23:17:25 +00:00
Dominic Clifton
b7f21ae6dd CC3D - Allow MSP, CLI, etc on VCP and USART1 by default. 2015-03-03 22:41:22 +00:00
Dominic Clifton
946f65601f Cleanup some enum values - using topic_type instead of type_topic. 2015-03-03 22:35:40 +00:00
Dominic Clifton
31a00d6b4d Fix size check for MSP_SET_CF_SERIAL_CONFIG. 2015-03-03 22:17:43 +00:00
Dominic Clifton
a156d915f4 Only index into the configurable baud rate list when needed. 2015-03-03 17:30:35 +00:00