APM:Libraries
Variables
SIM_Frame.cpp File Reference
#include "SIM_Frame.h"
#include <AP_Motors/AP_Motors.h>
#include <stdio.h>
Include dependency graph for SIM_Frame.cpp:

Go to the source code of this file.

Variables

static Motor quad_plus_motors []
 
static Motor quad_x_motors []
 
static Motor tiltquad_h_vectored_motors []
 
static Motor hexa_motors []
 
static Motor hexax_motors []
 
static Motor octa_motors []
 
static Motor octa_quad_motors []
 
static Motor dodeca_hexa_motors []
 
static Motor tri_motors []
 
static Motor tilttri_motors []
 
static Motor tilttri_vectored_motors []
 
static Motor y6_motors []
 
static Motor firefly_motors []
 
static Frame supported_frames []
 

Variable Documentation

◆ dodeca_hexa_motors

Motor dodeca_hexa_motors[]
static
Initial value:
=
{
}
#define AP_MOTORS_MOT_8
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_7
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MOT_11
#define AP_MOTORS_MOT_6
#define AP_MOTORS_MOT_3
#define AP_MOTORS_MOT_12
#define AP_MOTORS_MOT_5
#define AP_MOTORS_MOT_10
#define AP_MOTORS_MOT_9
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 94 of file SIM_Frame.cpp.

◆ firefly_motors

Motor firefly_motors[]
static
Initial value:
=
{
Motor(AP_MOTORS_MOT_2, 60, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 1, -1, 0, 0, 6, 0, -90),
Motor(AP_MOTORS_MOT_3, -60, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 5, -1, 0, 0, 6, 0, -90),
Motor(AP_MOTORS_MOT_5, 60, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 2, -1, 0, 0, 6, 0, -90),
Motor(AP_MOTORS_MOT_6, -60, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 6, -1, 0, 0, 6, 0, -90)
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MOT_6
#define AP_MOTORS_MOT_3
#define AP_MOTORS_MOT_5
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 144 of file SIM_Frame.cpp.

◆ hexa_motors

Motor hexa_motors[]
static
Initial value:

Definition at line 50 of file SIM_Frame.cpp.

◆ hexax_motors

Motor hexax_motors[]
static
Initial value:

Definition at line 60 of file SIM_Frame.cpp.

◆ octa_motors

Motor octa_motors[]
static
Initial value:

Definition at line 70 of file SIM_Frame.cpp.

◆ octa_quad_motors

Motor octa_quad_motors[]
static
Initial value:

Definition at line 82 of file SIM_Frame.cpp.

◆ quad_plus_motors

Motor quad_plus_motors[]
static
Initial value:
=
{
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MOT_3
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 26 of file SIM_Frame.cpp.

◆ quad_x_motors

Motor quad_x_motors[]
static
Initial value:
=
{
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MOT_3
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 34 of file SIM_Frame.cpp.

◆ supported_frames

Frame supported_frames[]
static
Initial value:
=
{
Frame("quad", 4, quad_plus_motors),
Frame("copter", 4, quad_plus_motors),
Frame("x", 4, quad_x_motors),
Frame("hexax", 6, hexax_motors),
Frame("hexa", 6, hexa_motors),
Frame("octa-quad", 8, octa_quad_motors),
Frame("octa", 8, octa_motors),
Frame("dodeca-hexa", 12, dodeca_hexa_motors),
Frame("tri", 3, tri_motors),
Frame("tilttrivec",3, tilttri_vectored_motors),
Frame("tilttri", 3, tilttri_motors),
Frame("y6", 6, y6_motors),
Frame("firefly", 6, firefly_motors)
}
static Motor hexa_motors[]
Definition: SIM_Frame.cpp:50
static Motor tiltquad_h_vectored_motors[]
Definition: SIM_Frame.cpp:42
static Motor tilttri_vectored_motors[]
Definition: SIM_Frame.cpp:124
static Motor quad_plus_motors[]
Definition: SIM_Frame.cpp:26
static Motor y6_motors[]
Definition: SIM_Frame.cpp:131
static Motor tilttri_motors[]
Definition: SIM_Frame.cpp:117
static Motor quad_x_motors[]
Definition: SIM_Frame.cpp:34
static Motor firefly_motors[]
Definition: SIM_Frame.cpp:144
static Motor hexax_motors[]
Definition: SIM_Frame.cpp:60
static Motor dodeca_hexa_motors[]
Definition: SIM_Frame.cpp:94
static Motor octa_quad_motors[]
Definition: SIM_Frame.cpp:82
static Motor octa_motors[]
Definition: SIM_Frame.cpp:70
static Motor tri_motors[]
Definition: SIM_Frame.cpp:110

Definition at line 158 of file SIM_Frame.cpp.

◆ tiltquad_h_vectored_motors

Motor tiltquad_h_vectored_motors[]
static
Initial value:
=
{
Motor(AP_MOTORS_MOT_1, 45, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 1, -1, 0, 0, 7, 10, -90),
Motor(AP_MOTORS_MOT_2, -135, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 3, -1, 0, 0, 8, 10, -90),
Motor(AP_MOTORS_MOT_3, -45, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 4, -1, 0, 0, 8, 10, -90),
Motor(AP_MOTORS_MOT_4, 135, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 2, -1, 0, 0, 7, 10, -90),
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MOT_3
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 42 of file SIM_Frame.cpp.

◆ tilttri_motors

Motor tilttri_motors[]
static
Initial value:
=
{
}
#define AP_MOTORS_MOT_8
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_7
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 117 of file SIM_Frame.cpp.

◆ tilttri_vectored_motors

Motor tilttri_vectored_motors[]
static
Initial value:
=
{
Motor(AP_MOTORS_MOT_1, 60, AP_MOTORS_MATRIX_YAW_FACTOR_CCW, 1, -1, 0, 0, 7, 10, -90),
Motor(AP_MOTORS_MOT_2, -60, AP_MOTORS_MATRIX_YAW_FACTOR_CW, 3, -1, 0, 0, 8, 10, -90),
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW
#define AP_MOTORS_MATRIX_YAW_FACTOR_CW

Definition at line 124 of file SIM_Frame.cpp.

◆ tri_motors

Motor tri_motors[]
static
Initial value:
=
{
}
#define AP_MOTORS_MOT_4
#define AP_MOTORS_MOT_7
#define AP_MOTORS_MOT_1
#define AP_MOTORS_MOT_2
#define AP_MOTORS_MATRIX_YAW_FACTOR_CCW

Definition at line 110 of file SIM_Frame.cpp.

◆ y6_motors

Motor y6_motors[]
static
Initial value:

Definition at line 131 of file SIM_Frame.cpp.