Skip to content

Commit

Permalink
Content: Simplify info, rename flash prop to storage for wider applic…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
VitroidFPV committed Oct 28, 2024
1 parent 6c23ce1 commit 6391cfb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_custom_props:
imu: ICM42688P
osd: MAX7456
barometer: DPS310
flash: W25Q128JVPQ (16MB)
blackbox: Onboard 16MB
dimensions: 36x39mm
mounting: 30.5x30.5mm
weight: 7.8g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_custom_props:
imu: ICM42688P
osd: MAX7456
barometer: DPS310
flash: W25Q128JVPQ (16MB)
blackbox: Onboard 16MB
dimensions: 36x39mm
mounting: 30.5x30.5mm
weight: 7.8g
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/boards/current/AIRBOTG4AIO/AIRBOTG4AIO.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_custom_props:
imu: ICM42688P
osd: AT7456E
barometer: DPS310
flash: W25Q128JVPQ (16MB)
blackbox: Onboard 16MB
dimensions: 35x35mm
mounting: 25.5x25.5mm
weight: 10.4g
Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/boards/current/AIRBOTSUPERF4/AIRBOTSUPERF4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_custom_props:
imu: ICM42688P
osd: MAX7456
barometer: DPS310
flash: W25Q128JVPQ (16MB)
blackbox: Onboard 16MB
dimensions: 36x39mm
mounting: 30.5x30.5mm
weight: 7.8g
Expand Down
6 changes: 3 additions & 3 deletions docs/wiki/boards/current/BRAHMA_F405/BRAHMA_F405.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ sidebar_custom_props:
target: BRAHMA_F405
mcu: STM32F405
imu: BMI270
osd: AT7456E (SPI 1)
barometer: DPS310 (I2C)
flash: W25Q256JVEIQ (32MB)
osd: AT7456E
barometer: DPS310
blackbox: Onboard 32MB
dimensions: 37.5x37.5x5mm
mounting: M4 30.5x30.5mm
weight: 9g
Expand Down
6 changes: 3 additions & 3 deletions src/components/SpecGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export default function VersionInfo({ children }) {
imu: string
osd: string
barometer: string
flash: string
blackbox: string
dimensions: string
mounting: string
weight: string
}

const specs = frontMatter.sidebar_custom_props?.specs as Specs;

const { target = '', mcu = '', imu = '', osd = '', barometer = '', flash = '', dimensions = '', mounting = '', weight = '' } = specs;
const { target = '', mcu = '', imu = '', osd = '', barometer = '', blackbox: flash = '', dimensions = '', mounting = '', weight = '' } = specs;

return (
<div className="w-full flex lg:flex-row flex-col gap-2">
Expand All @@ -42,7 +42,7 @@ export default function VersionInfo({ children }) {
<SpecBox icon={<Thermometer />} title="Baro:" color="neutral-light">
{barometer}
</SpecBox>
<SpecBox icon={<Save />} title="Flash:" color="neutral-light">
<SpecBox icon={<Save />} title="Blackbox:" color="neutral-light">
{flash}
</SpecBox>
<SpecBox icon={<Ruler />} title="Measurements:" color="neutral-light" colSpan={2}>
Expand Down

0 comments on commit 6391cfb

Please sign in to comment.