Releases: rollingbug/OneRCFW
Releases · rollingbug/OneRCFW
[OneRCFW][v0.1.0]
[Arduino][FlyCtrl][v0.1.0]
OneRCLIB:
1. MPU6050:
- Enable 42Hz LPF.
- Set sampling rate to 800 Hz.
2. GPS:
- Implement simulating UART function by combining HW timer 0, GPIO D5, D6.
- UART baud rate: 9600.
- Add ublox NEO-6M driving function.
* Default update rate: 5Hz.
* Only enable GPRMC and GPGGA NMEA messages.
3. Arduino UART:
- Change default baud rate to 57600.
4. Arduino ADC:
- Higher the ADC frequency to 250 KHz.
- Change ADC pin assignment.
* CH0: A6: AIRPLANE_ROLL_SCALE_CH
* CH1: A1: AIRPLANE_PITCH_SCALE_CH
* CH2: A2: AIRPLANE_YAW_SCALE_CH (Unused)
* CH3: A3: AIRPLANE_NAV_LOITER_CH)
* CH4: A7: AIRPLANE_MODE_DIPS_CH
5. RCIN:
- Change pin assignment.
* Logic CH 0 = Arduino D02 / AVR PD2 / PCINT 18 (PC group 2)
* Logic CH 1 = Arduino D04 / AVR PD4 / PCINT 20 (PC group 2)
* Logic CH 2 = Arduino D07 / AVR PD7 / PCINT 23 (PC group 2)
* Logic CH 3 = Arduino D12 / AVR PB4 / PCINT 4 (PC group 0)
* Logic CH 4 = Arduino D08 / AVR PB0 / PCINT 0 (PC group 0)
- Add RCIN calibration functions:
* Maximum and minimum RCIN pulse width calibration.
* Natural position calibration.
- Add failsafe configuration function.
OneRCAirplane:
- Update FW date definition (2017/12/16).
- Change maximum PID integral limitation of roll, pitch and yaw to +- 5 degree.
- Add "return to home" mode based on GPS navigation information.
* The maximum bank angle setting is 30 degree.
* Adjust pitch PID gain and pitch compensation according to current roll angle.
OneRCSchematic:
1. Add current FC schematic, layout and gerber files.
FW status and environment:
1. Arduino 1.6.9
2. Using Arduino Nano bootloader.
3. The MCU is running in 16Mhz mode.
4. Current FW size: FLASH usage = 30,242 bytes (98%), SRAM usage = 1,560 bytes (76%).
What to do for next?
#. This version FW contains auto level and GPS return to home function:
- The auto level function is quite stable now.
- The GPS return to home function is unstable, still need to do more test for this.
* I did some field trials few times in very windy day before.
- The latest test video: https://www.youtube.com/watch?v=OjTpQ1Ft-OE
* Maximum bank angle setting: 45 degree, already reduce the bank angle limitation to 30 degree, but never test it.
* Add "adjusting pitch PID gain according to current bank(roll) angle", but never test it.