Skip to content
Snippets Groups Projects
  1. Jan 11, 2017
  2. Jan 01, 2017
  3. Dec 18, 2016
  4. Nov 30, 2016
  5. Nov 29, 2016
  6. Nov 25, 2016
  7. Oct 24, 2016
  8. Jul 03, 2016
  9. Jun 02, 2016
  10. May 17, 2016
  11. May 13, 2016
  12. May 10, 2016
  13. May 09, 2016
    • skyscraper's avatar
      ArduPlane: Fix up after refactoring RC_Channel class · 7f299032
      skyscraper authored
      Further to refactor of RC_Channel class which included
      adding get_xx set_xx methods, change reads and writes to the public members
      to calls to  get and set functionsss
      
      old public member(int16_t)   get function -> int16_t     set function (int16_t)
      (expression where c is an object of type RC_Channel)
      c.radio_in                     c.get_radio_in()           c.set_radio_in(v)
      c.control_in                   c.get_control_in()         c.set_control_in(v)
      c.servo_out                    c.get_servo_out()          c.set_servo_out(v)
      c.pwm_out                      c.get_pwm_out()            // use existing
      c.radio_out                    c.get_radio_out()          c.set_radio_out(v)
      c.radio_max                    c.get_radio_max()          c.set_radio_max(v)
      c.radio_min                    c.get_radio_min()          c.set_radio_min(v)
      c.radio_trim                   c.get_radio_trim()         c.set_radio_trim(v);
      
      c.min_max_configured() // return true if min and max are configured
      
      Because data members of RC_Channels are now private and so cannot be written directly
       some overloads are provided in the Plane classes to provide the old functionality
      
      new overload Plane::stick_mix_channel(RC_Channel *channel)
      which forwards to the previously existing
      void stick_mix_channel(RC_Channel *channel, int16_t &servo_out);
      
      new overload Plane::channel_output_mixer(Rc_Channel* , RC_Channel*)const
      which forwards to
      (uint8_t mixing_type, int16_t & chan1, int16_t & chan2)const;
      
      Rename functions
      
       RC_Channel_aux::set_radio_trim(Aux_servo_function_t function)
          to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function)
      
       RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value)
          to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value)
      
       Rationale:
      
              RC_Channel is a complicated class, which combines
              several functionalities dealing with stick inputs
              in pwm and logical units, logical and actual actuator
              outputs, unit conversion etc, etc
              The intent of this PR is to clarify existing use of
              the class. At the basic level it should now be possible
              to grep all places where private variable is set by
              searching for the set_xx function.
      
              (The wider purpose is to provide a more generic and
              logically simpler method of output mixing. This is a small step)
      7f299032
  14. May 07, 2016
  15. May 06, 2016
    • Lucas De Marchi's avatar
      ArduPlane: use separate header for version macro · baa287e5
      Lucas De Marchi authored
      Having the version macro in the config.h and consequently in the main
      vehicle header means that whenever the version changes we need to
      compiler the whole vehicle again. This would not be so bad if we weren't
      also appending the git hash in the version. In this case, whenever we
      commit to the repository we would need to recompile everything.
      
      Move to a separate header that is include only by its users. Then
      instead of compiling everything we will compile just a few files.
      baa287e5
  16. Apr 29, 2016
  17. Apr 21, 2016
  18. Apr 20, 2016
  19. Apr 16, 2016
  20. Apr 10, 2016
  21. Apr 03, 2016
  22. Mar 31, 2016
  23. Mar 24, 2016
  24. Mar 02, 2016
  25. Feb 28, 2016
  26. Feb 20, 2016
  27. Feb 08, 2016
  28. Jan 28, 2016
  29. Jan 08, 2016
  30. Jan 01, 2016
    • Tom Pittenger's avatar
      Plane: improved crash detection logic and agility · 21205f8b
      Tom Pittenger authored
      - inhibit crash detection warnings when disabled by param so now it can be completely disabled
      - reset is_crashed when disabled by param
      - fixed pre-takeoff detection bug by adding in_preLaunch_flight_stage() where we are actually in FLIGHT_NORMAL instead of FLIGHT_TAKEOFF during setup of bungee launches. This now detects if we're in that state
      - simplified the use of been_auto_flying to check across all flight stages. before it was excluded to handle hand-launches which can now be detected with in_preLaunch_flight_stage()
      - added impact detector timer to clamp is_flying a few seconds after an impact
      - logging new impact detector as "STAT.Hit"
      21205f8b
Loading