Yets' Brushless Bwhoop B03 Silverware modified to work on BWHOOP, E011, H8mini_blue_board, Sliverlight and Dedicated brushless board.
Based on the work of Silverxxx and NotFastEnuf.
There are two main steps to prep this file for flash. The first will be in config.h and the second will be in pid.c file.
*Hardware Selection - select bwhoop, e011, H8mini_blue_board based hardware, silverlight and dedicated_board, radio protocol
*Receiver Settings - set rates, transmitter type, expo and assign features to auxiliary channel switches *Channel defines can be found in defines.h file
*PID settings - Choose base PID, select dual PIDs or single PID through define,invert yaw based on prop rotation choice. PID tuned through gestures, Silvervise app with selected Bayang_BLE_APP protocol will allow you to see PID numbers
*Filter Settings - set gyro filter and D term filter frequencies and orders
*Motor Output Settings - motor filter frequency, features related to motor output *Voltage Settings - low voltage cutoff and other voltage related settings
*Additional Features - remaining features
*ESC Driver Selection - select ESC driver (Oneshot) or Dshot according to ESCs, Blheli pass through driver. Additional setting changes may be required in drv_dhsot.c or drv_esc.c in accordance with the way you are connecting your board to the ESC. Information is found here; http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=brushless_setup and http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=more_brushless_setup_info
*Motor Pins Selection - select motor pins based on ESC
*Battery Voltage Settings - set ADC to give correct battery voltage setting for telemetry and LVC - Can be viewed in debug if using without telemetry. Values to be changed to get battery voltage explained in miscellaneous.c file and wiki
*Misc Settings - telemetry transmitter power, set buzzer time for buzzer *http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=adding_a_buzzer
Last major update 2018-08-19
This option (controlled in config.h) adds support for Analog Aux channels to control certain pre-programmed features. These are intended to be used with a transmitter with knobs/sliders to easily alter parameters while flying. These are controlled by #define lines in config.h. Enable these features by uncommenting the "#define USE_ANALOG_AUX" line. Commenting that line disables all analog aux channels at the compiler level, meaning they do not make the built firmware bigger or slower than it was before.
Initially, these features include:
Analog Rate Multiplier (ANALOG_RATE_MULT) Use a tranmitter knob to control your rates to help find your sweet spot without flashing in between Set your MAX_RATE and MAX_RATE_YAW to the highest rate you might want Use the assigned knob to adjust beween 0 and 100% of that rate in a linear scale Putting the knob at its middle point will give you half of your MAX_RATE Analog Max Angle for Level mode (ANALOG_MAX_ANGLE) When in Angle/Level mode, the maximum angle the quad is allowed to tilt (controlling your max speed, etc.) is set by the LEVEL_MAX_ANGLE define When enabling ANALOG_MAX_ANGLE, the LEVEL_MAX_ANGLE define is ignored The knob controls the maximum angle from 0 to 90 degrees in a linear scale Putting the knob at its middle point will give you a maximum angle of 45 degrees PID adjustments (ANALOG_RP_P, etc.) Assigning a knob to one of these defines lets you alter that PID setting from 0.5X to 1.5X of the current setting in pid.c Each of the P, I, or D for Roll, Pitch, and Yaw can be selected in config.h, or Roll and Pitch P, I, or D can be selected together on one knob The PID adjustments can be saved, just like the classic Silverware gesture PID adjustments. To save a new value, use the Down Down Down (DDD) gesture to write the current PID values to flash (including your new one(s)) and re-center your adjusted values. This means to keep your new value after saving, you must re-center your knob/slider. These initial features are mostly meant to start a conversation on how Analog Aux channels could be used. For example, I'm sure there are better ways to do live PID adjustment with a couple of analog knobs!
###How do you access/assign analog channels? What channels can be used?
For Sbus and DSM, you can assign any of the channels to use as analog aux channels.
For Bayang, you can use a modified version of the Bayang protocol I've made to the Multiprotocol Tx and Deviation Tx firmware that adds two 8-bit analog channels to the protocol.
The Multiprotocol module uses channels 14 and 15 for these analog channels. Set the "Option/Telemetry" value for the Bayang protocol on the Taranis to 2 or 3 (2 to get only the analog channels, 3 to get both Telemetry and the analog channels).
Deviation uses channels 13 and 14. Enable the Aux Analog option for the Bayang protocol.
For both the Multiprotocol module and Deviation, Silverware will not bind with a transmitter that does not have matching options (both Telemetry and Analog Aux channels).
These modifications can be found on the analog aux branch in my forks on GitHub (for now, you must select the branch rather than master): https://github.com/brianquad/DIY-Multiprotocol-TX-Module/tree/bayang-analog-aux https://github.com/brianquad/deviation/tree/bayang-analog-aux
####How to use Trim Switches for Silverware Analog Aux channels in Deviation Example:
-
Say you want to assign the LV (left vertical) trim switch to drive the radio channel 11 as if it were a pot, each click driving the pot in one direction or the other, click up to increase and click down to decrease.
-
Go into the Model Menu/5.Trims menu and set the LV trim to Ch11, so replace whatever-is-there (probably throttle but depends on what mode you fly) with CH11 i.e. it should look like: Ch11/step size/TRIMLV+. You can highlight throttle/whatever-is-there and hit enter to get into the submenu. Set Ch11 and set Trim Step to 10. this gives 10 clicks up and 10 clicks down for full range +100 to -100. Save it (highlight Save and press and hold the Enter button).
-
Go into the MIXER menu and find CH11, set the mixer type as "simple", Src is "none", curve is 1-to-1, scale is 0 and offset is 0. Save it.
-
Check the radio output in the Transmitter Menu/Channel Monitor, you should see the CH11 output following the trim switch, you should see the Ch11 output going from -100 to +100 in steps of 10.
- Autobind for NRF24 Dedicated board
- DSM protocols
- SUMD protocol
- SPI radio capabilities
- NFE Filter sets
- Advanced PID controller from NFE's fork
- Accelerometer Telemetry for Deviation
- Added JazzMac's experimental DShot DMA driver EXPERIMENTAL
- Added throttle safety option (NFE)
- Re-added motor beeps for use with Dshot driver for lost quad
- PID Voltage compensation added.
- Joelucid's I term Yaw fix. Fix to stop yaw drifts in extreme moves. Can be commented in/out to test for differences (Credit to joelucid for code)
- Added back the original Silverware filters under filter settings. Allows users to test various tuning options
- Added Dual PID which can be switched on a channel. Single PID can be enabled if user prefers (Credit to SilverAG for code)
- Added automatic voltage telemetry correction/calibration factor.
This commit enables flashing and configuring Blheli using the Silverware FC. May not work with all ESCs
- FC must have MOSFETS and motor pulldown resistors removed
- In hardware.h file comment in either define USE_ESC_DRIVER or define USE_DSHOT_DRIVER_BETA coupled with define USE_SERIAL_4WAY_BLHELI_INTERFACE
- Quad must be onground and not armed
- Connect TX/RX of a usb TTL adapter/Arduino to DAT/CLK and GND to GND in Blheli suite, select the 4way-IF (D) interface
- Connect and configure/flash ESCs as usual
- After disconnecting, normal FC operation should resume
Credit to Bikemike https://www.rcgroups.com/forums/showpost.php?p=38505698&postcount=11950
- E011 or Bwhoop Selection: define your board type and hardware settings are automatically selected for E011, Bwhoop, bwhoop pro, E011c, and beta fpv lite
- Radio Type Selection: Renamed aux channels as chan_5 through chan_10 and proper mapping is now controlled by defining your transmitter type. Simply select devo, multi (for taranis or other multimodule), or stock (for toy tx) and assign the features you want to chan_#
- Racemode: flight mode with leveling on roll, acro on pitch, and yaw axis rotates about gravity vector. Can be activated on an aux channel when in level mode.
- Racemode Horizon: same as above with horizon on roll.
- Horizon: leveling when upright, will flip or roll.
- Kalman Gyro Filter: adjustable gyro filter that's very similar to a 1st order filter but to me feels a little faster and a little weaker. You decide...
- Kalman Motor Filter: adjustable motor output filter. Same evaluation as the gyro version.
- Idle up/Arming on aux channel: idle speed is also adjustable. Paired with mix increase throttle feature it behaves like airmode
- Sticks Deadband: adjustable deadband for transmitter inputs to compensate for gimbals that don't perfectly center
- Motor Filter Frequencies: motor filters are adjustable by a frequency instead of a decimal value.
- AUTOBIND Has been added. Set a fixed ID in your TX. Stick gesture comand up-up-up to turn on autobind. Quad will flash once. Stick gesture Down-Down-Down will save your fixed ID. Unplug battery and plug in to verify. No more power cycling TX to bind. Currently only works with RX_BAYANG_TELEMETRY_AUTOBIND protol
_ Please find me here for feedback and bugs; https://www.rcgroups.com/forums/showthread.php?3052088-Silverware-NFE-Yets-Brushless-Fork
Also works with B03 Pro
Currently does not account for centered throttle! ( no altitude hold ) It uses normal throttle, low = motors off. That means it should be used with Devo / multimodule or another tx.
Programming connector is a Microjst 1.25 pitch connector. Don't wire positive to st-link as you may overcharge the battery if connected or damage the st-link.
Programming instructions ( uses St-link Utility program ): https://www.rcgroups.com/forums/showthread.php?2876797-Boldclash-bwhoop-B-03-opensource-firmware
Compiling instructions ( uses Keil uVision IDE): https://www.rcgroups.com/forums/showthread.php?2877480-Compilation-instructions-for-silverware#post37391059
By default "gestures" are used to change modes, move the stick left-left-down for acro mode , and right-right-down for level mode.
Pid gestures allow the pilot to change the acro mode pids by a percentage, and such tune the quadcopter without a computer. The new pids can be saved so that they will be restored after the quad is power cycled.The new pids will remain active if saved, until the pid values in file pid.c are changed. If the values are not changed, flashing the quad will not erase the pids unless the erase command is manually issued when programming.
See also http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=pidgesture
The gesture for accel calibration is down - down - down. If pids have been changed using the respective gestures since the last powerup or save, the pids will be saved instead.
DeviationTx and multimodule+taranis can support telemetry, this requires no changes from the defaults on the quad. For devo, when selecting the Bayang protocol, hit Enter to see options, and enable telemetry there. Telemetry currently contains received number of data and telemetry packets, and 2 voltages, battery raw voltage and compensated voltage ( against voltage drop )
For multimodule, you need to add telemetry ( as an option ) to the bayang protocol in the protocol table ( configuration file ). Note the telemetry protocol won't work with stock quads.
See also http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=telemetry
The Android app "SilverVISE" by SilverAG (not me) is able to receive telemetry from the quad using BLE packets. To use, the app protocol should be set in the quadcopter. The app will also show the pids.
More information http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=silvervise
The gcc version compiles close to 16k, and may need turning off features in order to make it fit. It's also possible to flash up to 32K with changes. Read install.md for additional information.
The boldclash settings may need changes to work with gcc well. Turn off the software lpf filters except the last 2, the loop time is longer, at 1400, which affects the frequency of other soft lpf filters. You could set loop time to 1500 but it may not be needed.
http://sirdomsen.diskstation.me/dokuwiki/doku.php?id=start
- 2 new D term filters, 1st and 2nd order with custom frequency
- improved led flash timing
- the throttle smooth feature is gone
- nrf24 support added, bayang protocol + telemetry
- softi2c support for 1 pullup only ( e011 )
- moved flash save to 31k
- added 2 looptime independent soft lpf
- added lowerthrottlemix3 from h8
- added motor filter 2 replacing original,much better performance
- pid save has own led flash now
- cleanup of unused features: headless and some other
- pid gestures - pids can be changed by gestures at the field
- pid save - new pids are saved to flash by the d-d-d gesture
- level pid is tuned more aggressive
- added filter between level pid and acro pid
- fixed issue where "Overclock" option broke level mode (i2c) - overclock can be used on the bwhoop now
- removed level mode I term - this was not usually used
- minor cleanup and efficiency
- GCC autovdrop now functional
- LVC throttle lowering disabled by default just in case it malfunctions
- autovdrop improved, and better compensation
- new measured motor curve at 24K pwm
- added a new way of lowering throttle below a certain voltage
- lvc now flashes below an "uncompensated" voltage, too, just in case