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

This commit is contained in:
Henry Wurzburg 2022-08-02 16:15:44 -05:00 committed by Andrew Tridgell
parent 44ce44b2fa
commit 8b02f11c23
2 changed files with 711 additions and 660 deletions

File diff suppressed because it is too large Load Diff

View File

@ -150,6 +150,16 @@ protected:
const char* _frame_class_string = ""; // string representation of frame class const char* _frame_class_string = ""; // string representation of frame class
const char* _frame_type_string = ""; // string representation of frame type const char* _frame_type_string = ""; // string representation of frame type
private: 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; static AP_MotorsMatrix *_singleton;
}; };