In the
motors_def_cf2.c there are configurations for this.
Code: Select all
/**
* Brushless motors mapped to the standard motor connectors with pull-ups (~1K) to VBAT soldered.
*/
const MotorPerifDef* motorMapDefaltConBrushless[NBR_OF_MOTORS] =
{
&CONN_M1_BL_INV,
&CONN_M2_BL_INV,
&CONN_M3_BL_INV,
&CONN_M4_BL_INV
};
So in
platform_cf2.c you should change the motor map.
Code: Select all
{
.deviceType = "CF20",
.deviceTypeName = "Crazyflie 2.0",
.sensorImplementation = SensorImplementation_mpu9250_lps25h,
.physicalLayoutAntennasAreClose = true,
.motorMap = motorMapDefaltConBrushless,
},
Hopefully this works out of the box. Remember you have to solder pull-ups (~1k) to VBAT.