1. 10 Jun, 2015 1 commit
    • Dominic Clifton's avatar
      Reduce maximum servos from 10 to 8. · 9a8a3167
      Dominic Clifton authored
      1) the 2 extra servos were not used for anything, yet.
      2) the MSP packet to set ALL the servo configurations in one go is
      larger than the MSP input buffer size.
      
      Likely the MSP_SET_SERVO_CONF should be updated with command that takes
      an index of a servo to configure, as per mode ranges/colors/leds/etc.
      
      Fixes #1002
      9a8a3167
  2. 29 May, 2015 2 commits
    • Dominic Clifton's avatar
      Reducing the maximum number of mode ranges from 40 to 20 to free up some · 6f3c16fe
      Dominic Clifton authored
      configuration storage space.
      6f3c16fe
    • Dominic Clifton's avatar
      Cleanup status indicator code. · e6733b4d
      Dominic Clifton authored
      This primarily is to avaoid stalling the main loop when beeping and
      flashing.
      
      This is needed because oneshot ESCs do not receive updates when the main
      loop is stalled.
      
      Additionally the beeper code for sticks held in disarm position is
      changed since it also clashed with profile selection.  Now profile
      selections can be seen and heard clearly.
      
      Other subsections of the system that changed the LED0 state while the
      main loop is running have been updated to use the status indicator API
      instead of blindly hitting the hardware which previously caused lots of
      odd LED flashing behaviour - now it is consistent.
      e6733b4d
  3. 23 May, 2015 1 commit
  4. 22 May, 2015 2 commits
    • Dominic Clifton's avatar
      CC3D - Add sonar. · 4ed6fdfe
      Dominic Clifton authored
      This also ensures that the PWM mapping does not use the sonar pins when
      sonar is enabled in a board agnostic way.
      Conflicts:
      	src/main/config/config.c
      	src/main/drivers/pwm_mapping.h
      	src/main/main.c
      	src/main/target/CC3D/target.h
      4ed6fdfe
    • Michael Jakob's avatar
      AlienWii32 updates · e3e55c64
      Michael Jakob authored
      Updated configuration defaults
      Documentation updates AlienWii and Spektrum bind
      e3e55c64
  5. 21 May, 2015 2 commits
  6. 20 May, 2015 2 commits
    • Dominic Clifton's avatar
      20a6f829
    • ProDrone's avatar
      Instead of trying to latch the desired features... · b75de91f
      ProDrone authored
      ...and apply them after a soft reset (which also required an additional
      write to flash), it is now such that features and settings are modified
      and stored in flash as before.
      
      After initialisation completes, the active features are latched and are
      not to be modified until the next startup. This guarantees that all
      saved modifications are persistent even when power is switched of
      (without a reset in between).
      
      When a soft reset is required, the active features and the currently
      configured features are used to detect if the oneshot feature has
      changed state, in which case motor PWM outputs are stopped and soft
      reset is done after a 1.5 second delay.
      
      During normal operation the active features will not change and all
      changes to features ordered via MSP commands or the CLI are applied to
      the configuration that gets saved to flash.
      
      The required effect of modifying features without changing the actions
      in the running mainloop is achieved. The user needs to be aware that
      changes to features are not applied immidiatly.
      b75de91f
  7. 19 May, 2015 1 commit
  8. 17 May, 2015 1 commit
  9. 15 May, 2015 1 commit
  10. 07 May, 2015 1 commit
  11. 06 May, 2015 4 commits
  12. 01 May, 2015 1 commit
    • BorisB's avatar
      yaw_fix default values · c3522882
      BorisB authored
      Pull request #802 has by default disabled yaw jump. That is fine on the
      most of the configurations, but one of my multirotors had an angled
      motor due to crash and this was causing weird behaviour.
      It is also possible to configure very low values, which can even cause a
      craft to not be able to stop after yaw and I am talking about the values
      below 100 like 1.
      
      Anyway this fix provides only valid configurable values what can't cause
      any danger. Also default parameter is not unlimited anymore and is
      configured to 200, which is a safe value to anybody who does the
      upgrade.
      cli.md is also edited
      c3522882
  13. 26 Apr, 2015 1 commit
  14. 23 Apr, 2015 1 commit
    • Michael Jakob's avatar
      This fix is for avoiding yaw overshoot and bounce back for some · 2fd79a7a
      Michael Jakob authored
      configurations
      The hardcoded limit in the mixer and PID controllers 3-5 would be
      removed
      by default and will be configurable by CLI variables:
      
      yaw_jump_prevention_limit, global setting (original fixed value was 100)
      yaw_p_limit, per profile setting (fixed value was 300)
      2fd79a7a
  15. 16 Apr, 2015 2 commits
  16. 15 Apr, 2015 1 commit
    • Dominic Clifton's avatar
      First-cut of a refactored failsafe system. · c8c0c856
      Dominic Clifton authored
      * fixes issue where indicators would flash when SBus RX entered failsafe
      mode.
      * fixes bug where turning off a TX for an SBus RX would instantly disarm
      when using a switch to arm when the channel went outside the arming
      range.
      * introduces failsafe phases to make the system more understandable.
      * allows the system to ask if rxSignalIsBeing received for all RX
      systems: PPM/PWM/SerialRX/MSP.  Also works when a serial data signal is
      still being received but the data stream indicates a failsafe condition
      - e.g.  SBus failsafe flags.
      * failsafe settings are no-longer per-profile.
      
      Untested: Sumd/Sumh/XBus/MSP (!)
      Tested: SBus X8R, Lemon RX Sat, X8R in PWM, Spektrum PPM.
      c8c0c856
  17. 14 Apr, 2015 1 commit
  18. 07 Apr, 2015 1 commit
  19. 25 Mar, 2015 1 commit
  20. 22 Mar, 2015 1 commit
  21. 18 Mar, 2015 1 commit
  22. 17 Mar, 2015 1 commit
  23. 13 Mar, 2015 1 commit
  24. 09 Mar, 2015 6 commits
    • Dominic Clifton's avatar
      Rename some PID controller methods. · bc8e53a9
      Dominic Clifton authored
      See #461.
      bc8e53a9
    • Dominic Clifton's avatar
    • Dominic Clifton's avatar
      Use a positive named setting and variable instead of a negative one to · ed434fe4
      Dominic Clifton authored
      simplify the logic and aid understanding.
      ed434fe4
    • Dominic Clifton's avatar
      Previously, at minimum throttle, the quad would do absolutely no self-leveling · 1b1163da
      Dominic Clifton authored
      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)
      1b1163da
    • Dominic Clifton's avatar
      # This is a combination of 2 commits. · 5e373494
      Dominic Clifton authored
      # 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
      5e373494
    • Damjan Adamic's avatar
      Re #316: Battery voltage calculation converted to integer arithmetic, unit... · 517d38c9
      Damjan Adamic authored
      Re #316: Battery voltage calculation converted to integer arithmetic, unit tests updated to account for proper rounding of voltage
      Added frsky_hiprec_vfas configuration option that selects how VFAS is sent
      Better arithmetics for FrSky CELL voltages, VFAS battery voltage send with other ID that allows 0.1V resolution
      517d38c9
  25. 07 Mar, 2015 2 commits
  26. 04 Mar, 2015 1 commit