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

14003 commits

Author SHA1 Message Date
dongie
c0882fd863 building binary for softserial and GPS changes;
enum warning fix in sbus.c
2014-04-06 06:44:35 +09:00
Kemal Hadimli
2ca082f09c GPS: clean up NMEA autodetect baud. -1 no longer used, it will cycle through available baud rates if no data is received anyway 2014-04-06 00:38:37 +03:00
Dominic Clifton
c7de7d2ebc Add support for 2 softserial ports on PWM4+5/TIM3_CH1+2/PA6+PA7 and
PWM6+7/TIM3_CH3+4/PB0+PB1

Update software serial to monitor serial pins for signal changes instead
of periodically sampling pin signals.

When reading the data the timer used is syncronized to the falling edge
of the start bit which allows for better syncronisation at higher
speeds.  The code has been tested OK from 1200 baud to 19200.  38400
baud was tested and partially usable but has been disabled because there
are too many transmit and receive errors, especially when transmitting
and receiving at the same time.

Due to the way a single timer is used for transmitting and receiving, if
data comes in while transmitting the system may incorrectly transmit a
short or long bit.  However at 19200 and below this didn't cause a
problem in the limited testing I performed.
2014-04-03 22:42:15 +01:00
Dominic Clifton
c36d884899 Change softserial timer calculation code to support baud rates in the
range 600 to 19200 (tested)
2014-04-03 13:00:12 +01:00
Dominic Clifton
7ebd402007 Merge remote-tracking branch 'multiwii/master' 2014-03-27 21:45:08 +00:00
dongie
06554338d1 initializing static var in gps 2014-03-02 23:05:44 +09:00
dongie
f83133fa74 Fixing missing reply in MSP_SET_MOTORS. Found by cTn 2014-02-20 19:56:40 +09:00
dongie
d40e8c0ef4 shows how many people use gimbal outputs.
regular gimbal rates has been broken since forever, same rate was applied to pitch and roll, instead of separate. thanx nicodh
2014-02-20 16:21:44 +09:00
dongie
96dcfe9174 Added support for fast sbus2 protocol (used by newer receivers). Untested, thanks Cesco 2014-02-19 16:36:10 +09:00
dongie
75ae09454b Merge pull request #44 from DTFUHF/master
Have servos output midrc at startup
2014-02-18 15:40:43 +09:00
dongie
30afff2578 got rid of feature_gyro_smoothing. nobody used that, and its retarded to do anyway. 2014-02-18 15:27:53 +09:00
dongie
202fc17608 added max_angle_inclination to CLI to configure (default) 50 degree max inclination. configurable between 10 and 90 (100..900 in cli) 2014-02-18 15:23:02 +09:00
dongie
9d421b4a67 removed rc averaging for serialrx sources - suggested by cesco 2014-02-18 12:12:08 +09:00
DTF UHF
ac94147589 Have servos output midrc at startup instead of 1ms pulse (full deflection) 2014-02-14 15:15:38 -05:00
kh4
ceb1f78526 Fix line endings to CRLF 2014-02-07 13:40:27 +02:00
dongie
0c46bdbfc8 added cli settings for pidvel
added (unsupported) GPS nav MSP numbers.
2014-02-04 08:21:40 +09:00
dongie
e8b3d00003 implement (not flight tested) brushed motors support.
set motor_pwm_rate to some value > 500 (1000, 8000, 16000 etc works on my scope).
then the motor output can be used to directly drive brushed motor fets.
PWM is rescaled to 0-base in brushed mode, so all same values of min/maxthrottle apply.
2014-01-31 11:56:55 +09:00
dongie
a695ddd66a added sumd serial receiver support by cesco/Plüschi 2014-01-31 10:02:50 +09:00
dongie
92c0947d7f bump config version after PID default changes and add built hex file 2014-01-28 10:03:30 +09:00
Lukas S
073f5116bb new althold PID
althold should work better now, the PID settings are preliminary. There
is definetly room for improvement.
For aquiring your own PID settings set ALT_P = 0 and tune the VEL pid
until the copter only drifts a little from its position when you
activate althold. Then set ALT_P to a value where it holds the position
stable
2014-01-28 01:26:58 +01:00
Johannes Kasberger
142bb20ae6 modified MSP implementation to reflect MW2.3 changes 2014-01-27 14:27:43 +01:00
Dominic Clifton
398fcffd1a Merge remote-tracking branch 'multiwii/master' 2014-01-24 18:45:38 +00:00
DTF UHF
1cb905b7c2 fix spacing 2014-01-23 17:52:04 -05:00
DTF UHF
d0a5a66b62 Enable gimbal_flags servo passthru in airplane modes and other mixer modes that use servos 2014-01-23 17:48:27 -05:00
KipK
6ee98fed90 indents 2014-01-17 17:02:48 +01:00
KipK
e198f1727b telemetry_switch: fixed condition when using softserial 2014-01-17 11:07:59 +01:00
KipK
7bd2db04be Added a mcfg.telemetry_switch for CLI
If telemetry_switch=1 it change baudrate and protocol using aux channel, either it switch  when armed/disarmed.

This allows to keep MSP serial while armed for BT dongle if needed.
2014-01-16 19:36:54 +01:00
KipK
0d974e2882 reverting previous fix. This doesn't solve all conditions.
I need to add a telemetry_switch conf or feature to solve enabling MSP over FRSKy with switch not activated when armed ( i.e. using bt serial for tuning sessions ), but it will break when not using telemetry switch.
Better to keep it like this for now.
2014-01-16 17:18:43 +01:00
KipK
b55496b13f Telemetry switch: fix stupid mistake 2014-01-16 16:18:36 +01:00
KipK
e6889aea12 Start Frsky telemetry using a switch without beeing armed.
This adds a Telemetry checkbox in the gui.
2014-01-15 14:53:03 +01:00
dongie
699dc00332 Merge branch 'fix' of https://github.com/treymarc/baseflight into treymarc-fix 2014-01-15 22:04:19 +09:00
dongie
a206965854 adding support for maxthrottle and mincommand in MSP_SET_MISC now that all the tools can use it. 2014-01-15 19:37:31 +09:00
dongie
9a7ff04422 adding untested (and needing work) fixedwing althold implementation.
see comments in code for things to fix. added new variable to cli, fixedwing_althold_dir (though its value isn't really clear, I think it should always be positive since servo direction mix is done later).
2014-01-06 21:38:36 +09:00
treymarc
b2e7c8d8fc THROTTLE ANGLE CORRECTION , "*" "/" operator priority bug
http://www.multiwii.com/forum/viewtopic.php?f=8&t=4433
2014-01-04 22:19:51 +01:00
treymarc
bf5b70f4e2 remove newlib stub , add mixer correction 2014-01-01 10:23:48 +01:00
treymarc
01f079c254 ed 2014-01-01 10:18:18 +01:00
treymarc
239120ba4e ignore white space 2014-01-01 10:14:23 +01:00
treymarc
2caa1fbb20 add newlib stubs 2014-01-01 09:42:14 +01:00
treymarc
d885e39a90 type float 2014-01-01 09:24:12 +01:00
treymarc
c76a9669f6 mixer coorection for hexa6x and hexa6p 2014-01-01 09:17:13 +01:00
treymarc
033a8fbe3f ident/format 2014-01-01 09:16:41 +01:00
dongie
13324c9f88 build binary for the previous GPS baud rate index fix 2013-12-27 08:37:17 +09:00
Kemal Hadimli
b74b9f182b gps: use gpsData.baudrateIndex all around 2013-12-26 22:17:05 +02:00
dongie
ac3b1fab64 Merge pull request #25 from disq/gps_baudfix
GPS Autoconfigure fix
2013-12-24 06:40:18 -08:00
Kemal Hadimli
d9c9cbfb9f another formatting fix 2013-12-24 16:15:08 +02:00
Kemal Hadimli
ab49f4efd2 fix formatting 2013-12-24 02:20:17 +02:00
Kemal Hadimli
11abec88ed gps nmea: reset error counter on init hardware 2013-12-24 01:48:51 +02:00
Kemal Hadimli
51b8a9e365 gps autoconfigure: wait 100ms between baud changes 2013-12-24 01:48:47 +02:00
Dominic Clifton
c525213355 Whitespace cleanup 2013-12-15 16:35:45 +00:00
Dominic Clifton
1127d8cc63 softserial: remove gcc warning when softserial loopback disabled. 2013-12-15 16:34:53 +00:00