Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
81e4ac17
Unverified
Commit
81e4ac17
authored
Dec 05, 2019
by
Gus Grubba
Committed by
GitHub
Dec 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8089 from modalai/pr-modalai-fc-v1
Add support for ModalAI FC v1 FW Update
parents
519c2460
ff07d06f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
Bootloader.h
src/VehicleSetup/Bootloader.h
+1
-0
FirmwareUpgradeController.cc
src/VehicleSetup/FirmwareUpgradeController.cc
+17
-0
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+1
-0
USBBoardInfo.json
src/comm/USBBoardInfo.json
+1
-0
No files found.
src/VehicleSetup/Bootloader.h
View file @
81e4ac17
...
@@ -78,6 +78,7 @@ public:
...
@@ -78,6 +78,7 @@ public:
static
const
int
boardIDFMUK66V3
=
28
;
///< FMUK66V3 board, as from USB PID
static
const
int
boardIDFMUK66V3
=
28
;
///< FMUK66V3 board, as from USB PID
static
const
int
boardIDKakuteF7
=
123
;
///< Holybro KakuteF7 board, as from USB PID
static
const
int
boardIDKakuteF7
=
123
;
///< Holybro KakuteF7 board, as from USB PID
static
const
int
boardIDDurandalV1
=
139
;
///< Holybro Durandal-v1 board, as from USB PID
static
const
int
boardIDDurandalV1
=
139
;
///< Holybro Durandal-v1 board, as from USB PID
static
const
int
boardIDModalFCV1
=
41775
;
///< ModalAI FC V1 board, as from USB PID
/// Simulated board id for V3 which is a V2 board which supports larger flash space
/// Simulated board id for V3 which is a V2 board which supports larger flash space
/// IMPORTANT: Make sure this id does not conflict with any newly added real board ids
/// IMPORTANT: Make sure this id does not conflict with any newly added real board ids
...
...
src/VehicleSetup/FirmwareUpgradeController.cc
View file @
81e4ac17
...
@@ -325,6 +325,14 @@ void FirmwareUpgradeController::_initFirmwareHash()
...
@@ -325,6 +325,14 @@ void FirmwareUpgradeController::_initFirmwareHash()
{
AutoPilotStackPX4
,
BetaFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/beta/holybro_durandal-v1_default.px4"
},
{
AutoPilotStackPX4
,
BetaFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/beta/holybro_durandal-v1_default.px4"
},
{
AutoPilotStackPX4
,
DeveloperFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/master/holybro_durandal-v1_default.px4"
},
{
AutoPilotStackPX4
,
DeveloperFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/master/holybro_durandal-v1_default.px4"
},
};
};
//////////////////////////////////// ModalAI FC v1 firmwares //////////////////////////////////////////////////
FirmwareToUrlElement_t
rgModalFCV1FirmwareArray
[]
=
{
{
AutoPilotStackPX4
,
StableFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/stable/modalai_fc-v1_default.px4"
},
{
AutoPilotStackPX4
,
BetaFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/beta/modalai_fc-v1_default.px4"
},
{
AutoPilotStackPX4
,
DeveloperFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Firmware/master/modalai_fc-v1_default.px4"
},
};
/////////////////////////////// px4flow firmwares ///////////////////////////////////////
/////////////////////////////// px4flow firmwares ///////////////////////////////////////
FirmwareToUrlElement_t
rgPX4FLowFirmwareArray
[]
=
{
FirmwareToUrlElement_t
rgPX4FLowFirmwareArray
[]
=
{
{
PX4FlowPX4
,
StableFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Flow/master/px4flow.px4"
},
{
PX4FlowPX4
,
StableFirmware
,
DefaultVehicleFirmware
,
"http://px4-travis.s3.amazonaws.com/Flow/master/px4flow.px4"
},
...
@@ -424,6 +432,12 @@ void FirmwareUpgradeController::_initFirmwareHash()
...
@@ -424,6 +432,12 @@ void FirmwareUpgradeController::_initFirmwareHash()
_rgFMUK66V3Firmware
.
insert
(
FirmwareIdentifier
(
element
.
stackType
,
element
.
firmwareType
,
element
.
vehicleType
),
element
.
url
);
_rgFMUK66V3Firmware
.
insert
(
FirmwareIdentifier
(
element
.
stackType
,
element
.
firmwareType
,
element
.
vehicleType
),
element
.
url
);
}
}
size
=
sizeof
(
rgModalFCV1FirmwareArray
)
/
sizeof
(
rgModalFCV1FirmwareArray
[
0
]);
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
const
FirmwareToUrlElement_t
&
element
=
rgModalFCV1FirmwareArray
[
i
];
_rgModalFCV1Firmware
.
insert
(
FirmwareIdentifier
(
element
.
stackType
,
element
.
firmwareType
,
element
.
vehicleType
),
element
.
url
);
}
size
=
sizeof
(
rgPX4FLowFirmwareArray
)
/
sizeof
(
rgPX4FLowFirmwareArray
[
0
]);
size
=
sizeof
(
rgPX4FLowFirmwareArray
)
/
sizeof
(
rgPX4FLowFirmwareArray
[
0
]);
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
const
FirmwareToUrlElement_t
&
element
=
rgPX4FLowFirmwareArray
[
i
];
const
FirmwareToUrlElement_t
&
element
=
rgPX4FLowFirmwareArray
[
i
];
...
@@ -504,6 +518,9 @@ QHash<FirmwareUpgradeController::FirmwareIdentifier, QString>* FirmwareUpgradeCo
...
@@ -504,6 +518,9 @@ QHash<FirmwareUpgradeController::FirmwareIdentifier, QString>* FirmwareUpgradeCo
case
Bootloader
:
:
boardIDFMUK66V3
:
case
Bootloader
:
:
boardIDFMUK66V3
:
_rgFirmwareDynamic
=
_rgFMUK66V3Firmware
;
_rgFirmwareDynamic
=
_rgFMUK66V3Firmware
;
break
;
break
;
case
Bootloader
:
:
boardIDModalFCV1
:
_rgFirmwareDynamic
=
_rgModalFCV1Firmware
;
break
;
case
Bootloader
:
:
boardID3DRRadio
:
case
Bootloader
:
:
boardID3DRRadio
:
_rgFirmwareDynamic
=
_rg3DRRadioFirmware
;
_rgFirmwareDynamic
=
_rg3DRRadioFirmware
;
break
;
break
;
...
...
src/VehicleSetup/FirmwareUpgradeController.h
View file @
81e4ac17
...
@@ -220,6 +220,7 @@ private:
...
@@ -220,6 +220,7 @@ private:
QHash
<
FirmwareIdentifier
,
QString
>
_rgKakuteF7Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgKakuteF7Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgDurandalV1Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgDurandalV1Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgFMUK66V3Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgFMUK66V3Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgModalFCV1Firmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgPX4FLowFirmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rgPX4FLowFirmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rg3DRRadioFirmware
;
QHash
<
FirmwareIdentifier
,
QString
>
_rg3DRRadioFirmware
;
...
...
src/comm/USBBoardInfo.json
View file @
81e4ac17
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
{
"vendorID"
:
9900
,
"productID"
:
22
,
"boardClass"
:
"Pixhawk", "name"
:
"Crazyflie 2"
},
{
"vendorID"
:
9900
,
"productID"
:
22
,
"boardClass"
:
"Pixhawk", "name"
:
"Crazyflie 2"
},
{
"vendorID"
:
9900
,
"productID"
:
1
,
"boardClass"
:
"Pixhawk", "name"
:
"Omnibus F4 SD"
},
{
"vendorID"
:
9900
,
"productID"
:
1
,
"boardClass"
:
"Pixhawk", "name"
:
"Omnibus F4 SD"
},
{
"vendorID"
:
8137
,
"productID"
:
28
,
"boardClass"
:
"Pixhawk", "name"
:
"PX4 FMUK66 v3.x"
},
{
"vendorID"
:
8137
,
"productID"
:
28
,
"boardClass"
:
"Pixhawk", "name"
:
"PX4 FMUK66 v3.x"
},
{
"vendorID"
:
1155
,
"productID"
:
41775
,
"boardClass"
:
"Pixhawk", "name"
:
"PX4 FMU ModalAI FCv1"
},
{
"vendorID"
:
1155
,
"productID"
:
22336
,
"boardClass"
:
"Pixhawk", "name"
:
"ArduPilot ChibiOS"
},
{
"vendorID"
:
1155
,
"productID"
:
22336
,
"boardClass"
:
"Pixhawk", "name"
:
"ArduPilot ChibiOS"
},
{
"vendorID"
:
4617
,
"productID"
:
22336
,
"boardClass"
:
"Pixhawk", "name"
:
"ArduPilot ChibiOS"
},
{
"vendorID"
:
4617
,
"productID"
:
22336
,
"boardClass"
:
"Pixhawk", "name"
:
"ArduPilot ChibiOS"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment