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
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
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
Dominic Clifton
2e5fe06a6a
Update AlienWii32 defaults for pitch/roll/yaw rates
2015-03-08 00:48:47 +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
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
1a8500c768
Transition to new per-port & per-function baud rate configuration.
2015-02-27 01:05:37 +00:00
Dominic Clifton
b6509dd1eb
Merge branch 'master' into serial-cleanup
...
Conflicts:
src/main/blackbox/blackbox_io.c
src/main/config/config.c
2015-02-26 22:43:29 +00:00
Dominic Clifton
ed434dd169
Cleanup ACC hardware enum so that 'None' is always '1' and doesn't
...
change every time a new sensor is added. All the sensor enum values are
now aligned.
2015-02-26 22:31:38 +00:00
Dominic Clifton
55d9994ff8
Reset adjustment states when switching profiles.
...
Fixes #544 .
2015-02-26 13:58:03 +00:00
Petr Ledvina
6b0fea5952
simplify #ifdef
s
2015-02-23 09:17:06 +01:00
Dominic Clifton
2f09b7d1d9
Merge branch 'blackbox-flash' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-flash
2015-02-22 17:24:39 +00:00
Dominic Clifton
9057d70410
Allow excluding of servo code at compilation time.
...
This is in preparation for backbox on CJMCU/64k.
Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Dominic Clifton
f4112a67c6
Bump config version.
2015-02-22 15:21:45 +00:00
Dominic Clifton
a1b01807cf
Merge branch 'lowpass' of https://github.com/fusterjj/cleanflight into fusterjj-lowpass
...
Conflicts:
src/main/flight/mixer.c
2015-02-22 14:55:04 +00:00
Nicholas Sherlock
acd4745a4e
Merge remote-tracking branch 'upstream/master' into blackbox-flash
2015-02-15 01:54:50 +13:00
Dominic Clifton
6064a3d692
More serial port cleanup to get build passing.
2015-02-12 02:03:57 +00:00
Dominic Clifton
5163bef0b2
Refactor serial port configuration, stage 1.
...
Tested and working:
* multiple MSP ports at different baud rates.
* cli on any MSP port.
* GPS
* gps passthough on currently active cli port.
Example config used for testing:
feature SOFTSERIAL
feature GPS
feature RX_PPM
serial_port_1_functions = 1
serial_port_1_baudrate = 115200
serial_port_2_functions = 128
serial_port_2_baudrate = 115200
serial_port_3_functions = 1
serial_port_3_baudrate = 19200
serial_port_4_functions = 0
serial_port_4_baudrate = 0
Known broken:
* Telemetry and shared serial ports
* Telemetry when unarmed.
Probably broken:
* Blackbox on shared port.
Untested.
* Serial RX.
* Blackbox.
2015-02-12 01:28:53 +00:00
Dominic Clifton
973efdd5fc
Temporary workaround for CC3D non-functional VCP when using OpenPilot
...
bootloader that some users have reported. This allows MSP connection via
USART so the board can be reconfigured.
2015-02-02 00:31:35 +00:00
Dominic Clifton
55cac2bdeb
Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
...
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
53406a7ac7
Relocate some structures and code to the right places.
...
This cleans up the include file order somewhat and fixes a couple of
dependencies.
The goal of this is to rename flight.c/flight.h to pid.c/pid.h.
2015-01-31 23:47:51 +01:00
Dominic Clifton
01b2ce0b36
IMU naming cleanup.
2015-01-31 22:23:38 +01:00
Dominic Clifton
27f0216a19
Ensure that current meter feature is not disabled since it requires no
...
hardware io.
2015-01-31 21:56:01 +01:00
Joel Fuster
4f0af41e79
Merge remote-tracking branch 'upstream/master' into lowpass
2015-01-31 10:47:39 -05:00
Dominic Clifton
1f3c9ab0db
Fix failing targets.
2015-01-30 22:02:25 +01:00
Dominic Clifton
f77a762b48
Allow inflight adjustments for floating-point based PID controllers.
2015-01-30 20:54:34 +01:00
Nicholas Sherlock
ebff1bdcd7
Merge remote-tracking branch 'upstream/master' into blackbox-flash
2015-01-30 13:48:49 +13:00
Dominic Clifton
ff6aecc1c8
CC3D - Disable display feature if the USART3 serial port is used.
2015-01-29 21:20:44 +01:00
Nicholas Sherlock
5a57dda665
Adding blackbox device setting and basic flashfs support for it
2015-01-28 22:14:49 +13:00
Dominic Clifton
b8b248827c
Bump config version for new servoCenterPulse setting.
2015-01-27 23:32:45 +01:00
Dominic Clifton
a2b232e805
Detach midrc (input) from servo center (output).
...
This fixes incorrect servo center position when midrc was not 1500.
Most likely only experienced by futaba plane or servo/tilt users.
2015-01-27 23:04:41 +01:00
Michael Jakob
704a431070
PID contoller documentation update (MultiWii23 and MultiWiiHybrid)
2015-01-26 19:26:44 +01:00
Michael Jakob
396731a428
Intitial support for ALIENWIIF3 target
2015-01-26 18:33:47 +01:00
tracernz
496d706097
Merge upstream
...
Conflict in src/main/sensors/battery.c from blackbox logging of
amperage. Merged changes in so that blackbox can log the current meter
ADC raw value.
2015-01-25 19:51:59 +13:00
tracernz
6868999d63
Set default current meter type
...
Current meter type added to resetBatteryConfig in config.c so it
defaults to ADC.
PWM mapping skips the current meter ADC pin only if used.
2015-01-25 19:35:18 +13:00
Dominic Clifton
9500fc2f33
Fix compiler error.
2015-01-25 01:07:38 +01:00
Dominic Clifton
3fc7f32324
Merge branch 'imu-cleanup' of https://github.com/avoid3d/cleanflight into avoid3d-imu-cleanup
2015-01-25 01:00:14 +01:00
Pierre Hugo
d691f72849
Moved configuring of IMU all into one function call.
2015-01-23 23:31:43 -08:00
Dominic Clifton
5a025b7164
Bump config version for LED color storage.
2015-01-22 22:58:08 +01:00
Pierre Hugo
919a8796e7
Switched configureIMU to consistant name.
2015-01-21 19:37:56 -08:00
tracernz
a37c6ee9ee
Merge https://github.com/cleanflight/cleanflight into virtualcurrent
2015-01-16 22:03:53 +13:00
tracernz
999f0ce002
Add virtual current sensor support
...
Virtual current sensor calculates an estimate of current based on
throttle position, current_meter_scale, and current_meter_offset.
Documentation to follow later.
2015-01-16 22:00:45 +13:00
Dominic Clifton
b7462c0b3d
Merge pull request #351 from nebbian/baseflight-pid-horizon-mode-tuneup_a
...
Baseflight pid (pid_controller=2) horizon mode tuneup
2015-01-16 00:50:12 +00:00
Joel Fuster
09862aed78
Merge with upstream
2015-01-10 14:31:34 -05:00
Ben Hitchcock
69d94c81e1
Second draft of the tuneup.
...
This uses ints for the sensitivity instead of mapping floats back and forth.
Also the stick position is read directly, without the RC_Rate affecting this value.
2015-01-07 21:54:13 +08:00
Ben Hitchcock
6b7c9facd3
First draft of better horizon mode
2015-01-06 21:53:23 +08:00
Joel Fuster
06ce23951b
Rename freq parameter; remove UT warnings
2015-01-04 22:15:09 -05:00