Pc端的基本Echarts

2023-05-16

Pc端的基本Echarts

双环传态图组件

在这里插入图片描述

<template>
  <div class="park-body">
    <div class="park-body-title" v-if="piedoubbleData.title">
      <p>{{ piedoubbleData.title }}</p>
    </div>
    <div
      ref="piedoubleChart"
      :class="className"
      :style="{ height: height, width: width, margin: margin }"
    />
    <div class="staytime">
      <span>{{ piedoubbleData.cartypename[0] }}</span>
      <span>{{ piedoubbleData.cartypename[1] }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'plexChart',
  props: {
    className: {
      type: String,
      default: 'chart',
    },
    margin: {
      type: String,
      default: '0px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '220px',
    },
    piedoubbleData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    piedoubbleData: {
      deep: true,
      handler(val) {
        this.setOptions(val, this.piedoubbleData)
      },
    },
  },
  mounted() {
    this.$nextTick(() => {
      this.initChart()
    })
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      this.chart = this.$echarts.init(this.$refs.piedoubleChart, 'macarons')
      this.setOptions(this.piedoubbleData)
    },
    setOptions({ names, carSeriesData, busSeriesData, avgBus, avgCar } = {}) {
      this.chart.setOption({
        legend: {
          orient: 'horizontal',
          left: '25%',
          bottom: '0%',
          icon: 'rect',
          itemWidth: 9,
          itemHeight: 9,
          // 注意:name值必须和series中的data的值的name保持一致,要不legend就不会显示
          data: names,
          textStyle: {
            color: '#BDBEBF',
            fontSize: 10,
          },
        },
        grid: {
          show: false,
          left: 'left',
        },
        title: [
          {
            text: '{a|' + avgCar + '}\n{b|平均在区时长}',
            textStyle: {
              rich: {
                a: {
                  color: '#FFFFFF',
                  fontSize: 30,
                },
                b: {
                  color: '#FFFFFF',
                  fontSize: 14,
                },
              },
            },
            textAlign: 'center',
            left: '24%',
            top: '42%',
          },
          {
            text: '{a|' + avgBus + '}\n{b|平均在区时长}',
            textStyle: {
              rich: {
                a: {
                  color: '#FFFFFF',
                  fontSize: 30,
                },
                b: {
                  color: '#FFFFFF',
                  fontSize: 14,
                },
              },
            },
            textAlign: 'center',
            left: '73%',
            top: '42%',
          },
        ],
        series: [
          {
            name: '大客车',
            color: ['#9581F8', '#5BCCF8', '#EB5955', '#F1A53A'],
            type: 'pie',
            center: ['25%', '50%'],
            radius: ['45%', '55%'],
            avoidLabelOverlap: true,
            legendHoverLink: true,
            label: {
              show: false,
            },
            labelLine: {
              show: false,
            },
            data: carSeriesData,
          },
          {
            name: '小客车',
            color: ['#9581F8', '#5BCCF8', '#EB5955', '#F1A53A'],
            type: 'pie',
            center: ['75%', '50%'],
            radius: ['45%', '55%'],
            avoidLabelOverlap: true,
            legendHoverLink: true,
            label: {
              show: false,
            },
            labelLine: {
              show: false,
            },
            data: busSeriesData,
          },
        ],
        tooltip: {
          show: true,
          formatter: function(params) {
            return names[params.dataIndex] + '分钟:' + params.value
          },
        },
        animationDuration: 2000,
      })
    },
  },
}
</script>
<style scoped lang="scss">
.park-body {
  width: 100%;
  .staytime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -40px;
    span {
      margin: 0 60px;
      font-size: 16px;
    }
  }
}
</style>

在这里插入图片描述

饼状图组件

<template>
  <div>
    <div
      ref="consumePerChart"
      :class="className"
      :style="{ height: height, width: width, margin: margin }"
    />
  </div>
</template>

<script>
export default {
  name: 'ConsumePerChart',
  components: {},

  props: {
    className: {
      type: String,
      default: 'chart',
    },
    margin: {
      type: String,
      default: '0px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '220px',
    },
    consumePerData: {
      type: Array,
      required: true,
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    consumePerData: {
      deep: true,
      handler(val) {
        this.setOptions(val)
      },
    },
  },
  mounted() {
    this.$nextTick(() => {
      this.initChart()
    })
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      this.chart = this.$echarts.init(this.$refs.consumePerChart, 'macarons')
      this.setOptions(this.consumePerData)
    },
    // 车流量
    setOptions(consumePerData) {
      var colorList = ['#0F70B7', '#3ABF60', '#DA732C', '#CCFF33', '#CC3300']
      // const objData = array2obj(consumePerData, 'name')
      this.chart.setOption({
        legend: [
          {
            selectedMode: false,
            orient: 'vertical',
            align: 'left',
            right: '8%',
            bottom: '10%',
            itemHeight: 8,
            itemWidth: 8,
            data: consumePerData,
            textStyle: {
              fontSize: 12,
              padding: [0, 0, 0, 0],
              color: '#cad0d7',
            },
          },
        ],
        tooltip: {
          trigger: 'item',
        },
        series: [
          {
            data: consumePerData,
            hoverAnimation: false,
            itemStyle: {
              show: false,
              normal: {
                color: function(params) {
                  return colorList[params.dataIndex]
                },
              },
            },
            labelLine: {
              // 线的长短
              normal: {
                length: 5,
              },
            },
            name: '车辆在区时长',
            type: 'pie',
            radius: '60%',
            center: ['40%', '65%'],
          },
        ],
      })
    },
  },
}
</script>

堆叠图组件

在这里插入图片描述


<template>
  <div class="park-body">
    <div class="park-body-title" v-if="plexData.title">
      <p>{{ plexData.title }}</p>
    </div>
    <div
      ref="plexChart"
      :class="className"
      :style="{ height: height, width: width, margin: margin }"
    />
  </div>
</template>

<script>
export default {
  name: 'plexChart',

  props: {
    className: {
      type: String,
      default: 'chart',
    },
    margin: {
      type: String,
      default: '0px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '220px',
    },
    plexData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    plexData: {
      deep: true,
      handler(val) {
        this.setOptions(val, this.plexData)
      },
    },
  },
  mounted() {
    // this.$nextTick(() => {
    this.initChart()
    // })
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      this.chart = this.$echarts.init(this.$refs.plexChart, 'macarons')
      this.setOptions(this.plexData)
    },
    setOptions({ xData, numData, totleNumData } = {}) {
      this.chart.setOption({
        grid: {
          bottom: '0%',
          top: '20%',
          right: '0%',
          left: '0%',
          containLabel: true,
        },
        legend: {
          selectedMode: false, // 取消图例上的点击事件
          orient: 'horizontal',
          right: '20',
          top: '5',
          itemWidth: 9,
          itemHeight: 9,
          textStyle: {
            color: '#959ABB',
            fontSize: 12,
          },
        },
        tooltip: {
          show: true,
        },
        xAxis: {
          type: 'category',
          data: xData,
          axisLabel: {
            show: true,
            color: '#BDBEBF',
          },
          axisLine: {
            show: true,
            lineStyle: {
              color: 'rgba(154,233,255,0.3)',
              width: 1,
            },
          },
          axisTick: {
            //不显示坐标轴刻度
            show: false,
          },
          splitLine: {
            //不显示网格
            show: false,
          },
        },
        yAxis: {
          type: 'value',
          name: '个',
          axisLabel: {
            color: '#BDBEBF',
          },
          axisLine: {
            show: true,
            lineStyle: {
              color: 'rgba(154,233,255,0.3)',
              width: 2,
            },
          },
          axisTick: {
            //不显示坐标轴刻度
            show: false,
          },
          splitLine: {
            //不显示网格
            show: true,
            lineStyle: {
              color: 'rgba(154,233,255,0.3)',
              width: 1,
            },
          },
        },
        series: [
          {
            name: '总车位',
            type: 'bar',
            barWidth: 20,
            barGap: '-100%',
            data: totleNumData,
            itemStyle: {
              normal: {
                color: '#3A93F8',
              },
            },
            hoverAnimation: false,
            silent: true,
            label: {
              show: true,
              position: 'top',
              formatter: function(params) {
                return '{a|' + numData[params.dataIndex] + '/}{b|' + params.value + '}'
              },
              textStyle: {
                rich: {
                  a: {
                    color: '#52B566',
                    fontSize: 12,
                  },
                  b: {
                    color: '#DCE0EB',
                    fontSize: 12,
                  },
                },
              },
            },
          },
          {
            name: '占用',
            type: 'bar',
            barWidth: 20,
            data: numData,
            itemStyle: {
              normal: {
                color: '#3BC4AC',
              },
            },
            label: {
              show: false,
            },
          },
        ],
        animationDuration: 2000,
      })
    },
  },
}
</script>
<style scoped lang="scss">
.park-body {
  width: 100%;
}
</style>

横向排名图

在这里插入图片描述

<template>
  <div class="park-body">
    <div class="park-body-title" v-if="rankData.title">
      <p>{{ rankData.title }}</p>
    </div>
    <div
      ref="flowRangkChart"
      id="flowRangkChart"
      :class="className"
      :style="{ height: height, width: width, margin: margin }"
    ></div>
  </div>
</template>

<script>
export default {
  name: 'FlowRangkChart',
  components: {},

  props: {
    className: {
      type: String,
      default: 'chart',
    },
    margin: {
      type: String,
      default: '10px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '100%',
    },
    rankData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    rankData: {
      deep: true,
      handler(val) {
        this.setOptions(val)
      },
    },
  },
  mounted() {
    this.initChart()
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      this.chart = this.$echarts.init(this.$refs.flowRangkChart, 'macarons')
      this.setOptions(this.rankData)
      //监听echarts图在全屏和非全屏下的大小
        window.addEventListener('resize', () => {
        this.chartPie.resize()
      })
    },
    setOptions({ typeName, countData, colorList } = {}) {
      this.chart.setOption({
        grid: {
          borderWidth: 0,
          top: '10%',
          left: '22%',
          right: '10%',
          bottom: '0%',
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            // 去掉移动的指示虚线
            type: 'none',
          },
          formatter: function(params) {
            var relVal =
              "<div style='display:flex;justify-content:space-between;min-width:200px;'><span>" +
              params[0].marker +
              params[0].name +
              '</span><span style="margin-left:20px">' +
              params[0].value +
              '辆</span></div>'
            return relVal
          },
        },
        xAxis: [
          {
            max: Math.max(...countData),
            type: 'value',
            show: false,
          },
        ],
        yAxis: [
          {
            inverse: true,
            type: 'category',
            data: typeName,
            splitLine: { show: false }, // 去除网格线
            splitArea: { show: false }, // 保留网格区域
            axisTick: {
              show: false,
            },
            axisLine: {
              show: false,
            },
            axisLabel: {
              show: true,
              color: '#959ABB',
              fontSize: 14,
              inside: false,
              margin: 70,
              textStyle: {
                align: 'left',
              },
              formatter: function(params) {
                var maxLength = 6
                if (params && params.length > maxLength) {
                  return params.substring(0, maxLength - 1) + '...'
                } else {
                  return params
                }
              },
            },
          },
        ],
        color: '#f4a64b',
        series: [
          {
            type: 'bar',
            showBackground: true,
            roundCap: 12,
            backgroundStyle: {
              color: 'rgba(8,146,248,0)',
            },
            // barGap: 0, // 同一类目下的柱间距

            barWidth: 10,

            label: {
              show: false,
              position: 'left',
              distance: 1,
              textStyle: {
                color: '#959ABB',
                fontSize: 14,
                width: '200px',
              },
            },
            itemStyle: {
              normal: {
                barBorderRadius: [0, 20, 20, 0],
                color: new this.$echarts.graphic.LinearGradient(1, 0, 0, 0, colorList),
              },
            },
            data: countData,
          },
        ],
      })
    },
  },
}
</script>

空心圆弧饼状图

在这里插入图片描述

<template>
  <div
    ref="pieChart"
    :class="className"
    :style="{ height: height, width: width, margin: margin }"
  />
</template>
<script>
export default {
  // 空心圆弧饼状图
  name: 'pieChart',
  props: {
    className: {
      type: String,
      default: 'pieChart',
    },
    margin: {
      type: String,
      default: '0px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '500px',
    },
    pieData: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    pieData: {
      deep: true,
      handler(val) {
        this.setOptions(val)
      },
    },
  },
  mounted() {
    this.$nextTick(() => {
      this.initChart()
    })
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      // console.log('饼图数据', this.pieData)
      this.chart = this.$echarts.init(this.$refs.pieChart, 'macarons')
      this.setOptions(this.pieData)
    },
    setOptions({ data, colorList, title, textSize, normalSize, labelLength, xPosition }) {
      this.chart.setOption({
        title: {
          text: title,
          textStyle: {
            fontSize: textSize,
            color: '#CAD0D7',
            fontWeight: '400',
          },
          y: '4%',
          x: xPosition || '25%',
          // x: '25%',
        },
        legend: [
          {
            icon: 'circle',
            selectedMode: false,
            orient: 'vertical',
            align: 'left',
            x: '78%',
            y: 'center',
            itemHeight: 11,
            itemWidth: 11,
            data: data,
            textStyle: {
              fontSize: 14,
              padding: [0, 0, 0, 0],
              color: '#cad0d7',
            },
          },
        ],
        series: [
          {
            type: 'pie',
            radius: ['35%', '60%'],
            center: ['40%', '55%'],
            data: data,
            hoverAnimation: false,
            label: {
              normal: {
                fontSize: normalSize,
                formatter: '{d}%',
              },
            },
            labelLine: {
              normal: {
                length: labelLength,
              },
            },
            itemStyle: {
              normal: {
                color: function(params) {
                  return colorList[params.dataIndex]
                },
              },
            },
          },
        ],
      })
    },
  },
}
</script>

水球波浪图( “echarts-liquidfill”: “^2.0.6”,)

在这里插入图片描述

<template>
  <div class="park-body">
    <div class="park-body-title" v-if="gasData.title">
      <p>{{ gasData.title }}</p>
    </div>
    <div
      :class="className"
      ref="queueDataChart"
      :style="{ height: height, width: width, margin: margin }"
    ></div>
    <div class="prtrol-body-num">
      预计排队 :<span>{{ gasData.queueNum }}</span
      ></div>
  </div>
</template>

<script>
import 'echarts-liquidfill/src/liquidFill.js'
export default {
  name: 'FlowRangkChart',
  components: {},

  props: {
    className: {
      type: String,
      default: 'chart',
    },
    margin: {
      type: String,
      default: '-10px',
    },
    width: {
      type: String,
      default: '100%',
    },
    height: {
      type: String,
      default: '220px',
    },
    gasData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      chart: null,
    }
  },
  watch: {
    gasData: {
      deep: true,
      handler(val) {
        this.setOptions(val)
      },
    },
  },
  mounted() {
    this.$nextTick(() => {
      this.initChart()
    })
  },
  beforeDestroy() {
    if (!this.chart) {
      return
    }
    this.chart.dispose()
    this.chart = null
  },
  methods: {
    initChart() {
      this.chart = this.$echarts.init(this.$refs.queueDataChart, 'macarons')
      this.setOptions(this.gasData)
    },
    setOptions({ queuedIndex } = {}) {
      this.chart.setOption({
        series: [
          {
            type: 'liquidFill',
            radius: '70%',
            center: ['50%', '50%'],
            data: [queuedIndex, queuedIndex, queuedIndex], // data个数代表波浪数
            backgroundStyle: {
              borderWidth: 1,
              color: 'rgb(255,0,255,0.1)',
            },
            label: {
              normal: {
                formatter: 12 + '',
                textStyle: {
                  fontSize: 20,
                },
              },
            },
            outline: {
              show: false,
            },
          },
          {
            type: 'pie',
            center: ['50%', '50%'],
            radius: ['70%', '72%'],
            hoverAnimation: false,
            data: [
              {
                name: '',
                value: 500,
                labelLine: {
                  show: false,
                },
                itemStyle: {
                  color: '#5886f0',
                },
                emphasis: {
                  labelLine: {
                    show: false,
                  },
                  itemStyle: {
                    color: '#5886f0',
                  },
                },
              },
            ],
          },
        ],
        tooltip: {
          show: true,
        },
      })
    },
  },
}
</script>
<style scoped lang="scss">
.prtrol-body-num {
  display: flex;
  font-size: 16px;
  width: 150px;
  color: #fbfbfb;
  text-align: center;
  align-items: center;
  margin-left: 90px;

  span {
    font-size: 24px;
    color: #3bd2ef;
    margin: 0 5px;
  }
}
</style>

使用:

 <gas-line-chart :gas-data="gasLineData"></gas-line-chart>
  gasLineData: {
        title: '加油站排队',
        queuedIndex: 0.2,
        queueNum: '123',
      },
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Pc端的基本Echarts 的相关文章

  • 【STM32】HAL库-以太网外设-LAN8720A-LWIP-无操作系统

    开发环境 KEIL MDK ARM 5 27MCU STM32F429IGT6PHY IC LAN8720ALWIP LWIP2 1 2STM32CUBEMX 6 6 1HAL V1 27 1 LAN8720A使用RMII接口与STM32的
  • git学习

    常用命令 查看当前文件夹下的文件与文件夹 xff1a ls ll 进入当前文件夹下的user文件夹 xff1a cd user 查看当前文件夹下的test txt文件 xff1a cat test txt 返回上一级目录 xff1a cd
  • 电赛专题---一.概述【电赛简介 /信号类需要准备什么?/怎么才能打好电赛?】

    1 电赛简介 全国大学生电子设计竞赛 xff08 National Undergraduate Electronics Design Contest xff09 是教育部和工业和信息化部共同发起的大学生学科竞赛之一 xff0c 是面向大学生
  • Postman安装

    1 官网下载 下载链接地址 xff1a https www postman com downloads 点击Download the App 根据自己的电脑以及需求选择对应的32位或者64位的版本 2 双击安装包 xff0c 不用任何操作
  • UART串口通信

    串口是 串行接口 的简称 xff0c 即采用串行通信方式的接口 串行通信将数据字节分成一位一位的形式在一条数据线上逐个传送 xff0c 其特点是通信线路简单 xff0c 但传输速度较慢 因此串口广泛应用于嵌入式 工业控制等领域中对数据传输速
  • Java第四课数据类型(二)

    一 变量类型 1 字节型 byte 2 整型 xff08 1 xff09 int 整型 4字节 xff08 2 xff09 show 短型 2字节 xff08 3 xff09 long 长型 8字节 3 浮点型 xff08 1 xff09
  • ESP32蓝牙配网

    注意 menuconfig 配置 xff08 必须打开蓝牙我这是C2所以使用NimBLE xff09 可以直接从demo的配置文件拷贝 Component config gt Bluetooth gt NimBLE BLE only Com
  • [C#] UDP协议 常用简单的代码(基于UdpClient类)(Thread实现)

    目录 说明1 消息发送端2 消息接收端 说明 在使用 C 开发Winform WPF等富客户端应用程序时 xff0c 有时会有 进程 之间 相互通信 的需求 下面是一种能够实现Udp 消息收发 常用且较为简单的 C 代码 使用注意 xff1
  • 掌控板OLED显示

    掌控板OLED显示 OLED显示文本内容 需要先将显示清空 xff0c 然后将想要显示的内容放在里面 xff0c 最后放入oled显示生效 源代码如下 xff1a span class token keyword from span mpy
  • 激光slam学习笔记1--RTK组合惯导、激光雷达传感器一些经验知识分享

    前言 xff1a 跟组合惯导和激光雷达打交道半年了 xff0c 过程中查找学习了这两方面的资料 xff0c 这里来个小结 如果有理解错误的 xff0c 望大佬们不吝赐教 一 RTK组合惯导 个人理解有两部分组成 xff0c 一个提供gps信
  • 计算机组成原理第五章:输入输出系统

    本章知识架构 接口 接口分类 xff1a 并行接口 xff1a 接口与系统总线 xff0c 接口与外设均按并行方式传送数据 串行接口 xff1a 接口与系统总线并行 xff0c 与外部设备串行 按I O传送控制方式划分 xff1a 直接程序
  • STM32串口通信 (缓冲区 发送不出数据&接收不到数据)

    STM32串口通信 流程附上代码注意事项一点心得 xff1a 流程 xff08 简单的发送数据 xff09 GPIO时钟使能串口时钟使能串口的GPIO配置写初始化串口函数 xff0c 配置串口USART Init USART1 amp US
  • 设计一个脉冲发生器,已知系统时钟为50MHz,生成脉冲宽度为1ms,脉冲间隔可调,最大间隔为1s

    设计一个脉冲发生器 xff0c 已知系统时钟为50MHz xff0c 生成脉冲宽度为1ms xff0c 脉冲间隔可调 xff0c 最大间隔为1s Design a pulse generator The system clock is kn
  • 详解结构体与链表

    目录 1 定义使用结构体变量 2 使用结构体数组 3 结构体指针 4 结构体内存对齐 重点 5 typedef的使用 6 动态内存的分配与释放 7 链表的创立 增删查改插 什么是链表 xff1f 静态链表和动态链表 链表的创立 链表的插入元
  • c++头文件及函数

    目前小编只了解到这些 xff0c 如果还有其他的一些头文件或函数 xff0c 欢迎评论区留言或者私信小编 xff0c 谢谢大家的观看 1 include lt iostream gt system pause 系统暂停 system mod
  • 将Ubuntu虚拟机架设到GNS3拓扑网络上并进行TCP协议仿真分析

    目录 前言环境配置 xff08 将Ubuntu虚拟机挂载到GNS3拓扑网络上 xff09 配置Ubuntu虚拟机GNS3拓扑网络配置先进行一下数据传输检验通路是否正常 开始实验task1 TCP传输过程中的IP分片task2 TCP请求与一
  • HTTP协议---工作原理&报文详情&完整请求过程

    1 工作原理 1 1 OSI 七层模型 OSI xff08 Open System Interconnection xff0c 开放系统互连 xff09 七层网络模型称为开放式系统互联参考模型 xff0c 是一个逻辑上的定义 xff0c 一
  • Makefile和CMake的简单入门

    Makefile和CMake的简单入门 从源代码到可执行文件Makefile的产生背景从make的调用到MakefileMakefile的基本格式Makefile的扩展用法Makefile的生成和部署 一 从源代码到可执行文件 当编译文件依
  • ubuntu搭建HTTP服务器

    1 首先安装apache2工具 sudo apt get update sudo apt get install apache2 apache2安装成功后 xff0c 我们可以在 var www html 目录下看到一个index html
  • 2021 大学生电子设计竞赛 G题 无人机 识别部分

    硬件解决方案 前视OpenMV与下视OpenMV 赛题整体解决方案 视觉只负责识别部分 采用定焦镜头 OpenMV只负责发送像素坐标系下的坐标信息 其他解算等决策部分均由嵌入式控制解决 解决思想 xff1a 围绕田地即地图中的绿色边缘巡航喷

随机推荐

  • c++:不使用STL标准模板库,实现双端队列

    c 43 43 xff1a 不使用STL标准模板库 xff0c 实现双端队列 文章目录 c 43 43 xff1a 不使用STL标准模板库 xff0c 实现双端队列0 简介1 怎么写1 1思路1 2代码 2 结尾 0 简介 最近一个实验验收
  • Android Android Studio 4.0 牛逼功能预览

    作者 xff1a wanbo 地址 xff1a https juejin im post 5db8cee351882557134d0411 新的 Android Studio 4 0 更换了全新的启动界面 xff0c 在今天 Google
  • Qt学习笔记之类继承关系图

  • C++:头文件递归包含问题(互相包含问题)

    目录 引言初始版本头文件守卫递归包含会怎么样为什么会出错前置声明是什么如何解决递归包含问题参考 引言 最近正在疯狂补技术债 xff0c 以及疯狂赶项目 大一大二摸的鱼终归是要还的 xff0c 也奉劝大家少摸鱼 xff0c 不然临近找工作可能
  • 拓展:示波器使用_波形分析

    这里主要对上一个练习中的波形图来拓展 xff0c 讲讲怎么在示波器输出的波形图中 xff0c 对该界面上的一些功能的使用 01 关于适应全屏 放大 缩小 对于输出波形 xff0c 经常要用到的即是适应屏幕 xff0c 以及放大缩小 xff0
  • 【已解决】element-ui组件嵌套太多层,导致内部el-input和el-select 等组件无法正常输入解决方案

    如果 element ui 组件嵌套太多层 xff0c 可能会导致内部的 el input 和 el select 等组件无法正常输入 出现这种问题通常是由于 z index 属性设置不正确导致的 解决这个问题的方法是调整组件的 z ind
  • 两个半天一刷Ubuntu入门指令

    目录 两个半天一刷Ubuntu入门指令 一 Ubuntu初次体验 二 设备驱动 三 Ubuntu用户组及其权限分配 四 压缩解压 五 Linux连接文件 六 vim编辑器 七 Linux下C编程 八 gcc和make及其Makefile的引
  • ENV环境配置及其下载网络组件包问题

    准备工作 Env 工具包含了 RT Thread 源代码开发编译环境和软件包管理系统 从 RT Thread 官网下载 Env 工具 在电脑上装好 git xff0c 软件包管理功能需要 git 的支持 git 的下载地址为https gi
  • 芯片flash保护(解锁)

    报错结果 Error while accessing a target resource The resource is perhaps notavailable 就是无法下载程序 解决办法 1 下载ST LINK Utility 链接 x
  • 2.RTT-点灯大师的修炼

    1 创建工程模板 相信大家通过学习上一篇文章 1 RTT 环境搭建 现在能熟练的创建一个标准模板了 xff0c 如果不会就跳回去学习一下吧 链接 xff1a 1 RTT 环境搭建 嵌入式路上的流浪的博客 CSDN博客 建立好的工程模板编译并
  • 4.RTT-UART-中断接收及轮询发送

    本期博客开始分享RTT的UART xff0c 利用战舰V3的uart2来输入输出一些字符串 UART xff08 Universal Asynchronous Receiver Transmitter xff09 通用异步收发传输器 xff
  • 12.RTT-IIC设备-AHT10温湿度传感器

    本系列博客更新结束啦 xff01 完结啦 xff01 xff01 xff01 撒花 xff01 xff01 xff01 关于RTT的设备和驱动专题更新完毕啦 xff0c 本期是最后一期 一段学习旅途的结束意味着下一段学习冒险的开始 虽然本系
  • RTduino+sht31温湿度传感器

    本次博客使用的是STM32F103C8T6 xff0c 因为该BSP已经对接好RTduino了可以直接上手使用 一 RTduino简介 RTduino是RT Thread实时操作系统的Arduino生态兼容层 xff0c 为RT Threa
  • 一文揭秘字节跳动、华为、京东的薪资职级

    声明 xff1a 本文所有数字均不是官方数据 xff0c 为网络资料收集整理 字节跳动 01 全球员工总数 字节的员工数量目前超过5万人 图片来源 xff1a 字节范 02 岗位职级 字节跳动的职级研发序列一共10级 xff1a 字节跳动创
  • ESP_C3在ubuntu下运行RT-Thread

    1 clone源代码RT Thread git clone git 64 github com RT Thread rt thread git 2 开始搭建ESP IDF环境 进入源码到bsp文件夹下找到ESP32 C3 xff0c 开始配
  • uniapp中使用弹出层

    uniapp中使用弹出层 因为业务的需要 xff0c 需要弹出一个复选框 xff0c 使用uniapp中自带的框架 使用 xff1a 第一步 xff1a 下载下示例项目 xff0c 找到主要的文件夹 第二步 xff1a 将该文件夹放到组件的
  • 手写一个uniapp的步骤条组件

    span class token operator lt span template span class token operator gt span span class token operator lt span view span
  • uniapp中的分页

    数据量过多就会使用分页 第一种 xff1a API span class token comment 和data同级 span span class token function variable function onReachBotto
  • uniapp中生成随机的二维码并进行保存

    需求 xff1a 需要根据用户id的不同生成不同的二维码 xff0c 并进行本地保存 第一步 xff1a 下载插件 这里对于二维码的生成 xff0c 使用的是第三方插件weapp qrcode min js xff0c 主要用到的文件是 d
  • Pc端的基本Echarts

    Pc端的基本Echarts 双环传态图组件 span class token operator lt span template span class token operator gt span span class token oper