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

18780 commits

Author SHA1 Message Date
Dominic Clifton
9906294cd8 Split navigation functionality from io/gps.c into flight/navigation.c.
gps.c now only has code that deals with gps hardware, state and
messaging.
navigation.c  now only has code dealing with flight
navigation/waypoints/home/hold/etc
2014-08-07 14:23:05 +01:00
Dominic Clifton
fe9df45a24 Latest binary with fixed current sensor. 2014-08-06 22:13:56 +01:00
Dominic Clifton
ac61a5ae5b Fixing current meter, vbatCycleTime was not being reset and the ADC
index was wrong.

See 5cc9750d12
2014-08-06 22:12:41 +01:00
Dominic Clifton
90f020f2ff Latest Naze/Flip32+ binary - many improvements! Primarily better
Altitude-Hold, Better PPM support.  Sonar alt-hold.  Current sensor
FrSky telemetry.  Cli cleanup (dump profile/master).  Support for SBUS
inverter.  Smaller code size - using GCC Link Time Optimisation and GCC
nano specs.  Updated WS281 LED Support.
2014-08-03 00:33:28 +01:00
Dominic Clifton
5b51780780 Adding FrSky main battery voltage code back in ('FAS' in telemetry
screen on OpenTX) - it was disabled in baseflight commits
a753661c23c428ede8c2b72e95d3e31f6c8b894e and removed  in
4ae03bb00e5616796989255d4101c4ed51162d50
2014-08-03 00:22:36 +01:00
Dominic Clifton
8c3a869251 Update CLI so that you can dump all, master or profile settings.
Cleanup '...' strings to reduce binary size.  Change version
information.

With this change it's much more obvious what is and what is not included
in a profile.

Examples:

dump
dump profile
dump master
2014-08-02 12:39:18 +01:00
Dominic Clifton
81cf29be70 Avoid error message appearing incorrectly after showing cli commands. 2014-08-02 12:39:17 +01:00
Dominic Clifton
7e5eeb53b2 Merge pull request #29 from nebbian/feature-change-profile-beep-bugfix
Bugfix for wrong number of beeps when changing profiles
2014-08-02 10:03:26 +01:00
Dominic Clifton
b026a8b159 Merge branch 'nebbian-feature-cli-get' 2014-08-02 10:02:36 +01:00
Dominic Clifton
01643b8621 Re-use existing code to show all matching cli commands for 'get' instead of exact match.
e.g.  'get deadband' will show all varialbles with the word 'deadband' in it.  exact match only required when setting variables.
2014-08-02 10:00:37 +01:00
Ben Hitchcock
df833a6178 Bugfix for wrong number of beeps when changing profiles
When changing profiles with the sticks, CleanFlight was beeping 0 times for profile
1, once for profile 2, and twice for profile 3.  This wasn't intuitive, and was
different to how Baseflight beeps when changing profiles.
This change makes baseflight give the same number of beeps as the profile number
that you change into.
2014-08-02 14:11:36 +08:00
Ben Hitchcock
35a4aa60f9 Adding 'get' command to the CLI, to view a single variable.
This enables the user to type "get variablename" in the CLI, which then shows the value of that variable (or a message saying "Variable 'variablename' not found").
This is easier for the user when they just want to see a single variable, instead of typing 'dump' and then having to parse a big long list of data.  It is also more intuitive than typing 'set variablename', as this feels unsafe.
2014-08-02 13:59:46 +08:00
Dominic Clifton
582503c0e6 Delete unused pwm rssi code - rssi adc is used instead since the rate
used (8khz) by some frsky receivers is too fast to be detected using the
pwm rssi code without bogging down the cpu in interrupt handlers.
2014-08-02 01:38:09 +01:00
Dominic Clifton
58e0900d5e CC3D - fixing two unused variable compiler warnings. 2014-08-02 00:46:01 +01:00
Dominic Clifton
d762da7dac Fix build relating to inverter/pwm rssi compiler errors. 2014-08-02 00:43:39 +01:00
dongie
1eea083fd9 On second thought, no need to make inverter configurable. only sbus will use it, and the driver can set inversion automatically. 2014-08-02 00:43:32 +01:00
dongie
0dc0a1e028 allow controlling external XOR gate connected to PB2 (BOOT1) to invert USART2_RX signal on F1. Currently used by sbus driver. 2014-08-02 00:43:21 +01:00
Dominic Clifton
25ede3e6e0 Fix PWM in RSSI - accidentally excluded when adding CJMCU support. 2014-08-02 00:43:06 +01:00
Dominic Clifton
4d9a672d9c CC3D / NAZE - Adding support for hardware controlled inverter for use by
SBUS RX.
2014-08-02 00:43:06 +01:00
Dominic Clifton
f08760634e Cleanup GPS compilation warnings from
ca746d2ff47c8eb589386045b91bbccdd76246d1
2014-08-02 00:43:06 +01:00
norem
74c3e28a12 Update gps.c
correctly verifies checksum before modifying read NMEA gps data
2014-08-01 22:54:01 +01:00
luggi
7917e44293 slow change althold now controls velocity directly
The throttle stick input now directly sets the vertical velocity
setpoint of the copter. (alt_hold_fast_change = 0)

Conflicts:

	src/imu.c
	src/mw.c
	src/mw.h
2014-08-01 22:52:08 +01:00
Dominic Clifton
ff82839f89 Fixing alt hold constraints to be 8192 instead of 8196.
The previous code before 5b1de9cce966c033ae7b01d9318161e0e40e08a8 was
using (x / 8) and then constraining using +/- 1024.  Removing the / 8 in
commit 5b1de9cce966c033ae7b01d9318161e0e40e08a8 should have meant the
new constraint values were (1024 * 8) = 8192.
2014-08-01 22:43:01 +01:00
luggi
75f94aa11b althold constants updated
baro velocity now limited to 15m/s
d-term is now smaller

Conflicts:

	src/imu.c
2014-08-01 22:39:23 +01:00
luggi
1bf806f54c make the accZ lpf used for althold configurable
set the variable accz_lpf_cutoff to the desired cutoff frequency
this can help to make althold smoother on copters with lots of
vibrations

Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.h
2014-08-01 22:31:22 +01:00
Dominic Clifton
c53268b7be Remove out of date Keil files. 2014-08-01 22:16:23 +01:00
Dominic Clifton
94784dfa04 STM32F30x - Update compiler flags. Disable -pedantic on F30x targets
due to the hundreds of warning the CMSIS library generates when it is
enabled.
2014-08-01 22:06:39 +01:00
Dominic Clifton
ff71a32eed Update STM32F303 startup script to handle recent changes to make file.
See 941b42a269
2014-08-01 21:44:27 +01:00
Trey Marc
c86a64ffb7 Update cli.c
let user set small angle to 180 , let user arm in any orientation , test ok
2014-08-01 21:19:55 +01:00
dongie
897839f9b8 making it really const this time. 2014-08-01 21:18:44 +01:00
Chris Nisbet
ceec9687cb Fixed location of const 2014-08-01 21:18:28 +01:00
Dominic Clifton
193c4db508 making timer lists const. 2014-08-01 21:17:34 +01:00
luggi
3c250d24ee fixed accz pt1 element bug 2014-08-01 21:14:18 +01:00
bubi-007
ca1964aa5c Update imu.c 2014-08-01 21:14:05 +01:00
bubi-007
d63d6e73b1 Update imu.c 2014-08-01 21:13:50 +01:00
bubi-007
626847456c Update imu.c 2014-08-01 21:13:36 +01:00
Dominic Clifton
38cbe28e0f Apply accz pt1 element fixes.
See:
f7132b9d33211a55b8bd2c92f14da59f35b715a4
b1f58bc01fcf1632b3c3947a5ed0e807c2763a30
5832e2f67fcd2ee93044b300fda37a420c595813
a5961aeda657225fa843a115a94229313db4b2db
2014-08-01 21:10:26 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
2d6a61c8c7 Remove -Wshadow, the warnings are not useful.
See https://lkml.org/lkml/2006/11/28/253
2014-08-01 19:58:39 +01:00
Paul Fertser
1a14b72b16 Makefile: add -lc to make debug build with -nostartfiles happy
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 18:44:39 +01:00
Dominic Clifton
ee5211c5ad Fix merge of a753661c23c428ede8c2b72e95d3e31f6c8b894e when building for
targets that use telemetry.
2014-08-01 18:43:45 +01:00
Dominic Clifton
5451d45f5f OLIMEXINO - Fix build when LEDs not used. 2014-08-01 18:40:10 +01:00
Dominic Clifton
61bdc2ad5d Fixed problem with debug build and _sbrk, caused by missing -lc linker
option.

Re-ordered some makefile statements to be in-line with baseflight for
easier merging.
2014-08-01 18:39:47 +01:00
Dominic Clifton
b96d1ae71d Update makefile so it builds with DEBUG=GDB without _sbrk linker error.
Enable additional warnings.

Later commits will fix warnings.
2014-08-01 14:12:39 +01:00
Paul Fertser
900f872058 Makefile: switch to newlib-nano
This makes the binary considerably smaller (73852 text with gcc
4.7.3, 71620 text with gcc 4.9.0 from TNT).

Build-tested only.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 12:29:00 +01:00
Paul Fertser
941b42a269 Makefile: link with -nostartfiles
This saves a bit more space and a reasonable thing to do since a
custom startup is used anyway.

Build-tested only.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 12:28:55 +01:00
Paul Fertser
76f4f31cf3 Make code warnings-free with -pedantic
This removes a function that's no longer used, and inline specifiers
from include file (where they're useless anyway). This makes the whole
default project warnings-free with -Wall -pedantic.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2014-08-01 12:28:44 +01:00
luggi
8e8e48032d add current sensor support to frsky telemetry
this lets the naze emulate the FAS100 current sensor and also transmits
the internally calculated mAh drawn via the fuel level data.

Conflicts:
	src/main/telemetry/frsky.c

Conflicts:
	src/main/telemetry/frsky.c
2014-08-01 12:28:21 +01:00
Dominic Clifton
9cad163030 OLIMEXINO - Use I2C2. 2014-08-01 01:26:36 +01:00
Paul Fertser
f218d3c040 Makefile: enable LTO
This rearranges Makefile a bit and enables Link Time Optimisation
which leads to a smaller code (77724 text with gcc 4.7.3).

Unconditionally adding -ggdb3 doesn't affect code size anyhow as all
the debugging info is stored in separate sections.

Build-tested only.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

Conflicts:

	Makefile
2014-08-01 01:25:16 +01:00