Browse Source

AP_Motors: refactor to allow frame type symbols to be created for ELF

master
Henry Wurzburg 3 years ago committed by Andrew Tridgell
parent
commit
8b02f11c23
  1. 1361
      libraries/AP_Motors/AP_MotorsMatrix.cpp
  2. 10
      libraries/AP_Motors/AP_MotorsMatrix.h

1361
libraries/AP_Motors/AP_MotorsMatrix.cpp

File diff suppressed because it is too large Load Diff

10
libraries/AP_Motors/AP_MotorsMatrix.h

@ -150,6 +150,16 @@ protected: @@ -150,6 +150,16 @@ protected:
const char* _frame_class_string = ""; // string representation of frame class
const char* _frame_type_string = ""; // string representation of frame type
private:
// setup motors matrix
bool setup_quad_matrix(motor_frame_type frame_type);
bool setup_hexa_matrix(motor_frame_type frame_type);
bool setup_octa_matrix(motor_frame_type frame_type);
bool setup_deca_matrix(motor_frame_type frame_type);
bool setup_dodecahexa_matrix(motor_frame_type frame_type);
bool setup_y6_matrix(motor_frame_type frame_type);
bool setup_octaquad_matrix(motor_frame_type frame_type);
static AP_MotorsMatrix *_singleton;
};

Loading…
Cancel
Save