vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / MATEKF405SE / config.c
blob8cd618e3cf0ecc579abe75d5b37075c8efc6887f
1 /*
2 * This file is part of INAV.
4 * INAV is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * INAV is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with INAV. If not, see <http://www.gnu.org/licenses/>.
18 #include <stdint.h>
19 #include <platform.h>
21 #include "config/config_master.h"
22 #include "config/feature.h"
24 #include "flight/mixer_profile.h"
26 #include "io/serial.h"
28 #include "telemetry/telemetry.h"
29 #include "fc/fc_msp_box.h"
30 #include "io/piniobox.h"
32 // alternative defaults settings for MATEKF405SE targets
33 void targetConfiguration(void)
35 #ifdef MATEKF405SE_PINIO
36 pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1;
37 pinioBoxConfigMutable()->permanentId[1] = BOX_PERMANENT_ID_USER2;
38 #endif
40 //serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_MSP;
41 //serialConfigMutable()->portConfigs[1].msp_baudrateIndex = BAUD_57600;
43 mixerConfigMutable()->platformType = PLATFORM_AIRPLANE; // default mixer to Airplane
45 serialConfigMutable()->portConfigs[7].functionMask = FUNCTION_TELEMETRY_SMARTPORT;