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
519cc5f238
CC3D - Updating docs regarding inverter.
2015-02-11 19:44:00 +00:00
tricopterY
3272b44410
Update inverter.c
...
Fixes #494
2015-02-11 19:06:34 +00:00
Dominic Clifton
2dc09cd24b
Merge pull request #457 from dave-pitman/patch-1
...
Update PID tuning.md
2015-02-06 14:08:11 +00:00
Dominic Clifton
b4b16fa28c
SPRACINGF3 - Set sensor alignments.
2015-02-05 17:49:32 +00:00
Dominic Clifton
012e8fac31
SPRACINGF3 - Configure beeper GPIO correctly.
2015-02-05 17:06:32 +00:00
Dominic Clifton
ed51428989
SPRACINGF3 - Enable DISPLAY. Specify serial port I/O in target.h.
2015-02-05 02:08:37 +00:00
Dominic Clifton
fdb81ed3b9
SPRACINGF3 - Enable ADC for VBAT, Current and RSSI.
2015-02-04 21:51:23 +00:00
Dominic Clifton
430ccd2338
STM32F3DISCOVERY/CHEBUZZF3 - Move ADC pin definitions to target.h files
2015-02-04 21:51:04 +00:00
Dominic Clifton
8aee0b25e2
Fix bug where current meter didn't work unless VBAT feature was enabled.
2015-02-03 16:20:14 +00:00
Dominic Clifton
6de42dd0de
Display version on the OLED display.
2015-02-02 22:30:59 +00:00
Dominic Clifton
395a1bb9a3
Update cli version command to show the version number now that there is
...
one available.
2015-02-02 22:05:30 +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
7ff15b0ea7
Updating sparky state in TODO list now that baro is confirmed working on
...
a board with a good baro.
As of this commit the following was observed:
* Baro's on Sparky boards supplied by Witespy / RTF Quads are bad (very
very noisy).
* Baro's on Sparky boards supplied by RadioC are fine.
2015-02-02 00:16:07 +00:00
Dominic Clifton
5512ff08c3
Allow thrust color to be combined with throttle.
2015-02-01 18:34:37 +00:00
Dominic Clifton
0fd7a2568c
Fix for BaroAlt resetting to 0.
...
This needs a little more investigation since it only seems to happen on
the Sparky (F3 target). The BaroAlt resets to 0 because of floating
point divide by 0 when calculating accZ_tmp which results in accAlt
becoming not-a-number (NaN).
2015-02-01 17:18:20 +01: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
8cc9e8ca37
More relocation of variables.
2015-02-01 00:03:46 +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
a9b2c39872
printf naming cleanup
2015-01-31 22:29:17 +01:00
Dominic Clifton
2a37e26715
Use correct flag for GPIOC IDR check.
2015-01-31 22:27:45 +01:00
Dominic Clifton
01b2ce0b36
IMU naming cleanup.
2015-01-31 22:23:38 +01:00
Dominic Clifton
8b0a982931
Telemetry naming cleanup.
2015-01-31 22:12:11 +01:00
Dominic Clifton
7c2c5eb152
Removing TODOs.
...
If it needs to be done it will be done.
2015-01-31 22:08:03 +01:00
Dominic Clifton
a0cca0c889
Updating sparky state in TODO list.
2015-01-31 21:59:13 +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
Dominic Clifton
c85919325c
Exclude a bit more code when USE_ADC is not defined for a target.
2015-01-30 22:43:04 +01:00
Dominic Clifton
d21a009d40
Change scale for I and D for inflight adjustments to PIDs of FP based
...
PID.
2015-01-30 22:09:36 +01:00
Dominic Clifton
1f3c9ab0db
Fix failing targets.
2015-01-30 22:02:25 +01:00
Dominic Clifton
de9a89ca85
Fix missing ) from ea386e6da2
2015-01-30 21:47:29 +01:00
Dominic Clifton
2ac7282314
Use different scale for inflight adjustments to PIDs of FP based PID
...
controllers.
2015-01-30 21:46:23 +01:00
Dominic Clifton
ea386e6da2
Remove magic number usage. Fix limits for FP based pid controller PID
...
adjustments to match those in serial_cli.c.
2015-01-30 21:27:09 +01:00
Dominic Clifton
fa18940087
Minor cleanups to allow CJMCU to build again.
2015-01-30 21:25:18 +01:00
Dominic Clifton
f77a762b48
Allow inflight adjustments for floating-point based PID controllers.
2015-01-30 20:54:34 +01:00
Dominic Clifton
e33fd411c5
Merge pull request #455 from sherlockflight/master
...
Blackbox: Log PID intermediates for pidLuxFloat
2015-01-30 19:33:55 +01:00
Dave Pitman
80d304ed49
Update PID tuning.md
...
Add warning about the Level_P default value of 90 which will most likely result in loss of control in Angle Mode.
2015-01-30 09:22:38 -08:00
Nicholas Sherlock
6a6a5b9908
PID tuning docs: Fix Angle level reference for PID controller 1
2015-01-30 18:58:10 +13:00
Nicholas Sherlock
f16c6fc019
Blackbox: Log PID intermediates for pidLuxFloat
...
Previously nothing was logged since the intermediate calculations were
floats. Logging them converted to integers is better than nothing.
2015-01-30 15:53:45 +13:00
Dominic Clifton
1d4c8925cc
Invert the useage of USE_USART1_RX_DMA for clarity.
2015-01-29 21:27:13 +01:00
Dominic Clifton
e81cc9696e
CC3D - Support serial RX on UART1.
2015-01-29 21:25:50 +01:00
Dominic Clifton
7b8ad20af6
Fix max baud rates on CC3D / F3 targets that were broken in merge of
...
6048a2e
.
2015-01-29 21:24:51 +01:00
Dominic Clifton
ff6aecc1c8
CC3D - Disable display feature if the USART3 serial port is used.
2015-01-29 21:20:44 +01:00
Dominic Clifton
741f20a8bb
Bump version to 1.7.0
2015-01-29 19:02:55 +01:00
Dominic Clifton
649081a5a6
Rename pidBaseflight to pidLuxFloat since it was never in official
...
baseflight firmware.
2015-01-29 18:20:10 +01:00
Dominic Clifton
203c744763
Add MSP command to allow changing pid controller.
2015-01-29 18:17:53 +01:00
Dominic Clifton
104a263533
Cleanup code style in Harakiri PID controller merge.
2015-01-29 17:02:10 +01:00
Dominic Clifton
2c2ef14fa9
Merge pull request #432 from MJ666/Harakiri_PID
...
Harakiri PID controller
2015-01-29 16:51:34 +01:00
Dominic Clifton
50428f2dcc
Change MSP_SONAR_ALTITUDE to be in the range used for cleanflight
...
original commands.
See
https://code.google.com/p/multiwii/source/browse/trunk/MultiWii_shared/Protocol.cpp#18
2015-01-29 15:23:38 +01:00
Krzysztof Rosinski
34cd8f466e
MSP command for sonar altitude
2015-01-29 15:17:15 +01:00
Dominic Clifton
be8c6a23d9
Merge pull request #441 from ledvinap/feature-negative-current-meter
...
Send current meter reading as signed value
2015-01-29 15:12:26 +01:00