<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>赛题趋势 &#8211; Cloudlay</title>
	<atom:link href="https://cloudlay.cn/tag/%e8%b5%9b%e9%a2%98%e8%b6%8b%e5%8a%bf/feed/" rel="self" type="application/rss+xml" />
	<link>https://cloudlay.cn</link>
	<description>life</description>
	<lastBuildDate>Sun, 14 Jun 2026 17:08:32 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://cloudlay.cn/wp-content/uploads/2026/01/avatar.ico</url>
	<title>赛题趋势 &#8211; Cloudlay</title>
	<link>https://cloudlay.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>从0到1带你打电赛·小车电控篇(二)：历年小车赛题进化史——看懂出题套路，押对方向</title>
		<link>https://cloudlay.cn/nuedc-car-02-history/</link>
					<comments>https://cloudlay.cn/nuedc-car-02-history/#respond</comments>
		
		<dc:creator><![CDATA[云间辞]]></dc:creator>
		<pubDate>Sun, 14 Jun 2026 17:08:32 +0000</pubDate>
				<category><![CDATA[嵌入式]]></category>
		<category><![CDATA[智能小车]]></category>
		<category><![CDATA[电赛]]></category>
		<category><![CDATA[自动行驶小车]]></category>
		<category><![CDATA[赛题趋势]]></category>
		<category><![CDATA[送药小车]]></category>
		<guid isPermaLink="false">https://cloudlay.cn/nuedc-car-02-history/</guid>

					<description><![CDATA[📚 本文是 「从 0 到 1 带你打电赛 · 小车电控篇」 系列（共 12 篇）第 2 篇。 第1篇 · 拿奖 [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class="ds-series" style="border:1px solid #4488ff33;background:#4488ff0d;border-radius:8px;padding:.8em 1.1em;margin:1.2em 0">
<p style="margin:0 0 .5em"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4da.png" alt="📚" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 本文是 <strong>「从 0 到 1 带你打电赛 · 小车电控篇」</strong> 系列（共 12 篇）第 2 篇。</p>
<ol style="margin:.2em 0 0;padding-left:1.4em">
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-01-how-to-score/">第1篇 · 拿奖逻辑：把比赛拆成小目标</a></li>
<li style="margin:.15em 0"><strong>第2篇 · 赛题进化史与押题（本篇）</strong></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-03-build-and-architecture/">第3篇 · 整车搭建与代码框架</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-04-motor-power/">第4篇 · 电机驱动与电源地基</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-05-sensing/">第5篇 · 感知：灰度/电磁/编码器/IMU</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-06-pid-basics/">第6篇 · PID 入门：搞懂 P/I/D</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-07-pid-advanced/">第7篇 · PID 进阶：串级+工程补丁</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-08-pid-tuning/">第8篇 · PID 调参实战(核心)</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-09-advanced-control/">第9篇 · 进阶控制：几时该上</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-10-vision-comm/">第10篇 · K230 视觉与通信协议</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-11-architecture-fsm/">第11篇 · 状态机与整车软件</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-12-field-manual/">第12篇 · 现场作战+避坑+开源</a></li>
</ol>
</div>
<p>上一篇我们把&#8221;怎么拿奖&#8221;拆成了一条能力链：稳→准→快→报告。但还有一个问题没解决——你到底该练哪种&#8221;稳准快&#8221;？循迹？测距？视觉识别？双车通信？这些技能学起来都不便宜，四天三夜里全练一遍根本不够。</p>
<p>所以这一篇，我们来当一回&#8221;押题侦探&#8221;。把历年小车/控制类赛题摊开来看，你会发现出题人不是随机出题的，他们有一条非常清晰的进化主线。看懂这条线，你就能猜到下一题大概要考什么，把有限的备赛时间砸在刀刃上。</p>
<div class="ds-callout ds-callout-tip" style="border-left:4px solid #00bfa6;background:#00bfa614;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bfa6"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 先记住一句话</p>
<p>看赛题进化，就像看一个人&#8221;从学会走，到学会开车&#8221;的过程：早期只要求小车能往返跑准距离（走路），后来要会循迹过弯（骑车），再后来要看摄像头认路、认数字（看着路标开车），现在是多车配合 + 精确停进车位（自动驾驶 + 自动泊车）。每一步都在前一步上加东西，从不凭空跳。</p>
</div>
<h2>先扫掉一个最常见的误区：电赛不是年年都有国赛</h2>
<p>很多新人一上来就栽在赛制上。这件事先说清楚，否则你押题的年份都会对错。</p>
<p>全国大学生电子设计竞赛（NUEDC，大家都叫它&#8221;电赛&#8221;）是<strong>两年一个周期</strong>：</p>
<ul>
<li><strong>奇数年（2021、2023、2025…）= 国赛</strong>，全国统一命题、规模最大，圈里叫&#8221;大年&#8221;；</li>
<li><strong>偶数年（2022、2024…）= 省级赛 + TI 杯模拟电子系统设计专题赛</strong>，圈里叫&#8221;小年&#8221;。</li>
</ul>
<div class="ds-callout ds-callout-warning" style="border-left:4px solid #ff9100;background:#ff910014;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff9100"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 别把&quot;2022 双车跟随&quot;&quot;2024 自动行驶小车&quot;当成国赛题</p>
<p>网上资料经常笼统地把所有题都叫&#8221;电赛&#8221;，于是你会看到&#8221;2022 双车跟随&#8221;&#8221;2024 自动行驶小车&#8221;这种说法。严格讲，2022、2024 是<strong>偶数年的省赛 / TI 杯</strong>，不是国赛。这一点对押题很关键：<strong>省赛题往往是上一届国赛方向的简化或延伸</strong>，难度和时限通常更宽松。换句话说，研究国赛主线能帮你押省赛，反过来不一定成立。</p>
</div>
<p>这个&#8221;大年小年交替&#8221;，你可以想成奥运会和省运会：国赛像奥运会，奇数年全国总动员、最隆重；省赛 + TI 杯像省运会加专项邀请赛，偶数年小一号、按地区比。</p>
<p>赛制的更多细节（四天三夜怎么打、三人怎么分工）后面《整车搭建与代码框架》和《现场作战手册》会专门展开，这里不重复。我们直接进入正题——看题。</p>
<h2>第一阶段·早期（2003~2011）：把&#8221;机械控制&#8221;做准</h2>
<p>最早的小车题，核心诉求就一个字：<strong>准</strong>。让车按要求跑、停得准、算得对，根本还没有&#8221;看路&#8221;这回事。</p>
<p>奠基性的一题是 <strong>2003 年 E 题「简易智能电动车」</strong>。官方题面要求：</p>
<ul>
<li>直道行驶时，存储并显示每个薄铁片（路面中心标志）到起跑线的距离；</li>
<li>进入停车区，准确驶入车库，车身要完全进去；</li>
<li>停车后，准确显示全程行驶时间。</li>
</ul>
<p>听着挺朴素，但它把后面二十年小车题的骨架都立好了：<strong>测距、定点停车、全程计时</strong>。当年北京科技大学的队伍靠这题拿了国一。</p>
<p>那它的电控核心是什么？很简单：</p>
<ul>
<li><strong>传感器</strong>：在车轮上贴黑白条纹，用光电传感器（或霍尔开关）做&#8221;里程计&#8221;——轮子转一圈，反射光就产生固定个数的脉冲；</li>
<li><strong>算法</strong>：单片机数脉冲，就能算出走了多远、走得多快；</li>
<li><strong>闭环</strong>：一个简单的速度闭环，让车别忽快忽慢。</li>
</ul>
<p>到 <strong>2011 年</strong>，出现了一个很有意思的题：<strong>双车超车</strong>。两辆车在赛道上，用光电管寻迹、用红外开关测两车距离，控制车距实现超车。这是&#8221;多车协同&#8221;主线最早的雏形——日后 2021 送药双车、2022 双车跟随，思想都从这儿来：<strong>车间要么直接通信，要么靠相对距离闭环</strong>。</p>
<div class="ds-callout ds-callout-note" style="border-left:4px solid #448aff;background:#448aff14;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#448aff"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4dd.png" alt="📝" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 这一阶段你要练的电控技能</p>
<p>编码器 / 光电测速 + 单环速度 PID。就这些。如果你连&#8221;轮子转一圈数多少个脉冲、怎么换算成速度&#8221;都还没弄明白，那不管赛题怎么进化，地基都没打好。编码器和速度环的细节，《感知》和《PID 入门》两篇会手把手教。</p>
</div>
<div class="ds-callout ds-callout-example" style="border-left:4px solid #7c4dff;background:#7c4dff14;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#7c4dff"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e9.png" alt="🧩" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 顺手纠两个易记错的小事实</p>
<ul>
<li>车体尺寸限制一脉相承：2001/2003 是&#8221;电动玩具车&#8221;（长 ≤ 35cm、宽 ≤ 15cm），2007 起改&#8221;小型电动车&#8221;（最大 300mm×200mm，高不限），到 2024 年量级压到约 25cm×15cm×15cm。<strong>尺寸卡得越来越死，直接影响你能塞多大的视觉模块</strong>——这也是后来大家偏爱紧凑型摄像头的原因之一。</li>
<li>网上常把&#8221;2001 自动往返&#8221;当起点。更准确地说，这条主线对应的是 2003 E 题；2001 本科组主线是&#8221;电动玩具车&#8221;，具体题面记载比较弱。押题别拿 2001 当锚点。</li>
</ul>
</div>
<h2>第二阶段·中期（2016~2022）：循迹 + 测距 + 双车，控制升级到&#8221;串级&#8221;</h2>
<p>车开始要&#8221;会看路&#8221;和&#8221;会配合&#8221;了。这一阶段的关键词是：<strong>多路循迹、超声测距、双车通信、串级 PID</strong>。</p>
<p>代表题包括 2016 年无线充电车、2017/2022 自动泊车，以及 <strong>2022 双车跟随</strong>。技术栈明显比早期厚了一层：</p>
<ul>
<li><strong>循迹</strong>：从 1 路红外，升级到多路红外 / 灰度阵列。车不再只会直线跑，能沿着地面引导线过弯；</li>
<li><strong>测距</strong>：超声波测距上场，用来控制车距、避障、入库；</li>
<li><strong>通信</strong>：双车任务需要稳定的车间通信，最常用的是<strong>蓝牙串口模块 HC-05</strong>（配置简单、成本低）；如果是跨楼宇的远距离任务，才会考虑 LoRa；</li>
<li><strong>控制</strong>：单环已经不够用了，<strong>串级 PID（双环）</strong> 成为标配。</li>
</ul>
<p>什么叫串级？打个比方——</p>
<div class="ds-callout ds-callout-tip" style="border-left:4px solid #00bfa6;background:#00bfa614;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bfa6"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 串级 / 双环 PID，像&quot;公司里的老板和员工&quot;</p>
<p>外环（老板）只负责定目标，比如&#8221;车速给我到 1m/s&#8221;；内环（员工）负责具体怎么给油门，把这个目标真正落地。规矩是：<strong>先把员工训练靠谱（内环调稳），老板下指令才有意义（再调外环）</strong>。反过来，员工还站不住，老板喊破嗓子也白搭。</p>
</div>
<p>这条规矩——<strong>双环永远从内往外调</strong>——是贯穿整个 PID 体系的铁律，后面《PID 进阶》和《PID 调参实战》会反复强调。这里你先有个印象就行：到了中期，调参不再是调一个环，而是调两个环之间的配合。</p>
<h2>第三阶段·近期（2021~2024）：视觉 + 决策被推到舞台中央</h2>
<p>这是变化最剧烈的阶段。车不光要看引导线了，它要<strong>看懂世界</strong>——认数字、认靶标、追光斑——然后<strong>自己做决策</strong>。我们挑三道有代表性的题细看。</p>
<h3>2021 F 题「智能送药小车」：视觉融合的里程碑</h3>
<p>场景设定得很生活化：医院走廊地面上有一条红线，墙上 / 地上用黑色数字纸贴着病房号。任务是——单车在规定时间内把药送到指定的近距 / 中距病房并返回药房；进阶部分还要两车协同，一起把药送到同一个中距病房。</p>
<p>电控核心一下子丰富起来：</p>
<ul>
<li>摄像头做<strong>阈值化红线循迹</strong>；</li>
<li>摄像头做<strong>黑色数字识别</strong>（认病房号）；</li>
<li>陀螺仪测角度控制转向；</li>
<li>光电编码器测里程；</li>
<li>单片机跑 PID。</li>
</ul>
<p>主控通常是 STM32F407，视觉用 OpenMV 或 K210，车体是舵机四驱小车。</p>
<p>这题最值得讲的，是一段真实的国一战例——它告诉你&#8221;桌面调通&#8221;和&#8221;现场能用&#8221;是两码事：</p>
<div class="ds-callout ds-callout-danger" style="border-left:4px solid #ff1744;background:#ff174414;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff1744"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f525.png" alt="🔥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 战例：模板匹配在现场直接崩了</p>
<p>一支 2021 F 题国一队，一开始用 OpenMV 的<strong>模板匹配</strong>来识别病房数字。桌面上调得好好的，一到真实走廊，光照、角度一变，<strong>识别率根本不可靠</strong>。他们临场把方案切到 K210 神经网络，在<strong>固定 20~25cm 的拍摄距离</strong>重新采集数据集、训练 tflite 模型，才把识别率拉到 <strong>80%~90%+</strong>。</p>
<p>还有两个救命的小招： 1. <strong>用置信度阈值过滤误判</strong>（数字 7 最容易被认错）； 2. <strong>用一个 8 元素数组做多帧投票</strong>——不是看一帧就定结果，而是累计多帧检测再排序定结论。</p>
<p>后期他们甚至上了<strong>双 K210</strong>，实现&#8221;行进中不停车识别&#8221;。</p>
<p>教训：<strong>视觉识别一定要在真实的拍摄距离和光照下采数据、训练</strong>，别信桌面上调通的模板匹配；多帧投票 + 置信度阈值，是去抖动最廉价、最好用的招。</p>
</div>
<p>同一支队还有个惨痛的硬件插曲：<strong>第二辆车在临赛前 UART 和 IO 引脚损坏</strong>，被迫整片换主控芯片，在封箱前最后几小时才把两车功能补完。所以关键引脚要早做冗余验证、备好替换板，别把最后几小时排满。</p>
<p>这段经验，到《视觉与通信》那篇会接着深挖——尤其是&#8221;视觉模块只回传结论、不回传整张图&#8221;的设计思想。这里你先记住一个判断：<strong>到了视觉时代，识别算法的成败往往不在算法本身，而在你有没有在真实条件下喂它数据。</strong></p>
<div class="ds-callout ds-callout-warning" style="border-left:4px solid #ff9100;background:#ff910014;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff9100"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 还有一个低级却致命的坑：串口波特率</p>
<p>视觉模块和主控对话，传得快不如传得准。线一长、干扰一上来，<strong>115200 波特率就开始乱码</strong>，把波特率降到 <strong>9600</strong> 才稳。这个坑在 2024 H 题里也有队伍踩过，后面还会再遇到它。</p>
</div>
<h3>2023 E 题「运动目标控制与自动追踪」：毫米级定位的残酷一课</h3>
<p>这题严格说不是地面小车，而是<strong>二轴舵机云台 + 激光笔 + OpenMV 视觉</strong>的组合，但它属于控制类主线，而且给所有人上了一堂关于&#8221;机械精度&#8221;的课，非常值得看。</p>
<p>系统是：OpenMV 视觉 + STM32 + 二轴云台 + 激光笔，做闭环。功能包括复位、让激光沿屏幕边 / A4 纸边运动、自动追踪一个光斑。题目建议<strong>红色激光开环、绿色激光闭环</strong>（闭环那部分需要 PID 跟踪）。</p>
<p>难点在哪？算一笔账你就懂了：</p>
<div class="ds-callout ds-callout-danger" style="border-left:4px solid #ff1744;background:#ff174414;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff1744"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f525.png" alt="🔥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 战例：1° 的误差，在 1 米外就是 1.7 厘米</p>
<p>激光打到 1 米外的屏幕上。普通 PWM 舵机有回差，<strong>1° 的误差，在 1 米距离上就放大成约 1.7cm 的偏移</strong>。你要做的是毫米级定位，普通舵机的分辨率和回差根本压不住。</p>
<p>雪上加霜：K210 在 320×240 分辨率下，1 米外的黑胶带不足 10 个像素——<strong>连&#8221;看清&#8221;都困难</strong>。</p>
<p>各队最后的解法：换<strong>高精度 / 总线舵机</strong>（带编码器），或者<strong>步进电机 + 齿轮减速</strong>，或者普通舵机配 2:1、3:1 减速；同时做两套坐标标定——云台角 <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2194.png" alt="↔" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 屏幕坐标、相机像素 <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2194.png" alt="↔" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 屏幕坐标（类似电阻屏标定，控制激光打到几个已知点，建一个变换矩阵）。</p>
<p>教训：<strong>精密指向任务，先算&#8221;角度误差 → 末端位移&#8221;这笔灵敏度账。机械精度不够，再好的 PID 也救不回来；视觉分辨率不够，就靠近拍或换高分辨率模块。</strong></p>
</div>
<p>这就是那个著名的&#8221;激光笔杠杆效应&#8221;——手腕（舵机）动一点点，1 米外墙上的红点就跑老远；指得越远，手越要稳。所以精密指向必须用&#8221;更细的手腕&#8221;。</p>
<h3>2024 H 题「自动行驶小车」：回到纯传感器，但把双环 PID 玩到极致</h3>
<p>有意思的是，2024 H 题反而&#8221;退&#8221;了一步——<strong>不许用摄像头</strong>，强制用 <strong>TI 的 MSPM0（M0G3507）平台</strong>，靠<strong>灰度循迹 + 陀螺仪</strong>。但它把控制做到了很硬核的程度。</p>
<p>场地是这样的：≥ 220cm×120cm，两段对称的半圆弧，半径 40cm，黑弧线宽约 1.8cm。四个任务由易到难：</p>
<table>
<thead>
<tr>
<th>任务</th>
<th>路径</th>
<th>时限</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>A → B</td>
<td>≤ 15s</td>
</tr>
<tr>
<td>2</td>
<td>A→B→弧→C→D→弧→A 一圈</td>
<td>≤ 30s</td>
</tr>
<tr>
<td>3</td>
<td>A→C→弧→B→D→弧→A 一圈</td>
<td>≤ 40s</td>
</tr>
<tr>
<td>4</td>
<td>按路径跑 4 圈</td>
<td>越快越好</td>
</tr>
</tbody>
</table>
<p>控制方案是<strong>七 / 八路灰度识线 + 维特陀螺仪测偏航</strong>，跑<strong>姿态环 + 寻迹环双环 PID</strong>：直线 / 斜线段靠姿态环，过弯靠寻迹环。控制周期 <strong>10ms</strong>（定时器中断，TIM2）。</p>
<p>实战里有两个流派，你可以都参考：</p>
<ul>
<li><strong>流派一（陀螺主控向）</strong>：用位置式 PID，直接以陀螺的<strong>绝对偏航角</strong>控制直行和转向，把算出来的 PWM 增 / 减量，叠加到左右轮的基础占空比上。逻辑是&#8221;遇到黑线开寻迹环，离开黑线开转向环&#8221;；</li>
<li><strong>流派二（分段动态 PID）</strong>：直线段用大 Kp、Kd=0 求快；弯道段用更大的 Kp + 大 Kd 求稳，按陀螺角速度或灰度命中宽度来切换。</li>
</ul>
<p>这给我们引出两条非常实用的经验法则：</p>
<div class="ds-callout ds-callout-tip" style="border-left:4px solid #00bfa6;background:#00bfa614;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bfa6"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 用陀螺的绝对偏航角走直线，比纯灰度更稳</p>
<p>灰度只在&#8221;压着线&#8221;的时候有效，一旦车在直线段、或者短暂丢线，灰度就抓瞎了。这时候靠<strong>陀螺积分出来的偏航角（yaw）保持航向</strong>最可靠：记录起始 yaw 当基准，用 PD 控制偏差，叠加到左右占空比上。这是 2024 H 题的主流方案。</p>
</div>
<div class="ds-callout ds-callout-tip" style="border-left:4px solid #00bfa6;background:#00bfa614;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bfa6"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 一组 PID 参数别想通吃直线和弯道</p>
<p>直道求快需要小 Kd，弯道求稳需要大 Kp 大 Kd，单组参数顾此失彼。国奖队普遍用<strong>分段动态切换</strong>。注意切换点要加&#8221;迟滞&#8221;（hysteresis），别在临界点反复横跳；切换瞬间可能有跳变，最好做平滑过渡。</p>
</div>
<p>具体到怎么把这几条揉进一份能跑的代码、怎么对着波形一步步整定，是《PID 调参实战》整篇要解决的事，这里点到为止。下面给一段差速控向的骨架，让你先有个手感——不管误差是来自陀螺偏航角还是灰度加权，套路都是&#8221;误差 → PID → 叠加到左右轮&#8221;：</p>
<pre><code class="language-c">// 控制周期 10ms（定时器中断里调用）
// err 可以来自：陀螺偏航角偏差，或灰度加权偏差
float turn = Kp * err + Kd * (err - err_prev);
err_prev  = err;

int left  = base_speed - turn;   // 左轮 = 基础速度 - 转向量
int right = base_speed + turn;   // 右轮 = 基础速度 + 转向量
// 符号按你自己的传感器朝向 / 电机接线定，调反了会朝偏差方向越冲越远</code></pre>
<p>但 2024 H 题也暴露了纯灰度 + 陀螺方案的两个致命弱点，这两个坑你一定要提前防：</p>
<div class="ds-callout ds-callout-danger" style="border-left:4px solid #ff1744;background:#ff174414;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff1744"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f525.png" alt="🔥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 战例：第四问只跑了三圈半</p>
<p>某队第四问翻车：小车刚进圆弧区<strong>没踩到黑线</strong>，导致依赖&#8221;检测到黑线才切状态&#8221;的整套程序逻辑节点全部后移，最后只跑了三圈半。</p>
<p>根因之一是灰度的&#8221;死缝&#8221;问题：<strong>黑线正好卡在两路灰度中间时，两路都返回 0</strong>——车明明压着线，程序却判成&#8221;丢线&#8221;。</p>
<p>这队还顺带踩了一串小坑：某 GPIO 输入异常（换个引脚解决）、轮子和电机轴打滑（上胶固定）、115200 串口乱码（降到 9600）。</p>
<p>教训：<strong>纯灰度状态机一定要有兜底</strong>——用编码器里程计做后备，在&#8221;按理走了这么远还没见到线&#8221;时强制切状态 / 转向；传感器间距要小到不会让线漏在缝里；到了现场，必须重新标定灰度的电位器去适配当天的光照。</p>
</div>
<div class="ds-callout ds-callout-warning" style="border-left:4px solid #ff9100;background:#ff910014;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#ff9100"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 战例：陀螺零漂，多圈必偏</p>
<p>多份 2024 H 题复盘都指出：陀螺仪的偏航角有<strong>非固定的零漂</strong>，跑多圈之后航向会缓慢偏移，只能靠人工修正每圈的转向角硬凑，仍然消不干净。</p>
<p>对策：<strong>上电先静置标定零偏 + 做温补</strong>，并且用外部基准（灰度线 / 里程计）周期性地校正 yaw，给陀螺上&#8221;双保险&#8221;。</p>
<p>你可以把陀螺零漂想成&#8221;戴久了会走偏的旧手表&#8221;：你以为它读的是真角度，其实它每分钟都悄悄快一点点，跑几圈方向就全错了——所以要定时拿&#8221;标准钟&#8221;（灰度线 / 里程）对一下表。顺带一提，MPU6050 的零漂明显比维特智能（WT61 / HWT101 等，约 0.05° 级）这类高精度陀螺要大。</p>
</div>
<div class="ds-callout ds-callout-important" style="border-left:4px solid #00bcd4;background:#00bcd414;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bcd4"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2757.png" alt="❗" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 一定要纠正的一个流传错误：2019 没有地面循迹小车</p>
<p>网上经常把 <strong>2019 B 题「巡线机器人」当成地面小车</strong>来准备——它其实是<strong>四旋翼无人机绕杆巡检</strong>：从距 A 杆 1m 内起飞，1m 定高绕杆巡检（起飞 → A 杆 → 线缆 → 绕 B 杆 → 线缆 → A 杆 → 降落），≤150s，发现黄色异物在 30cm 内声光提示。2019 真正的<strong>地面控制车是 A 题「动态无线充电系统」</strong>（车边走边接收地面线圈的电）。押题、复盘别记错这一笔。</p>
</div>
<h2>把这条线拎出来：四个清晰的演进方向</h2>
<p>把三个阶段叠在一起看，趋势其实非常干净。我用一张表收一下：</p>
<table>
<thead>
<tr>
<th>维度</th>
<th>早期（2003~2011）</th>
<th>中期（2016~2022）</th>
<th>近期（2021~2024）</th>
<th>趋势预测</th>
</tr>
</thead>
<tbody>
<tr>
<td>传感器</td>
<td>单路红外 / 码盘</td>
<td>多路灰度阵列 + 超声</td>
<td>摄像头 + AI 芯片</td>
<td>激光雷达 / 深度相机</td>
</tr>
<tr>
<td>控制</td>
<td>单环速度 PID</td>
<td>串级双环 PID</td>
<td>多模态融合（+卡尔曼）</td>
<td>融合 + 自适应</td>
</tr>
<tr>
<td>协同</td>
<td>单车</td>
<td>双车</td>
<td>双车 / 多车</td>
<td>多车 + V2X</td>
</tr>
<tr>
<td>指标</td>
<td>&#8220;到达&#8221;</td>
<td>精确入库</td>
<td>厘米 / 毫米级停靠</td>
<td>精度继续抬高</td>
</tr>
<tr>
<td>主控</td>
<td>51 / STM32</td>
<td>STM32</td>
<td>STM32 → 强制 TI MSPM0</td>
<td>延续 TI MSPM0</td>
</tr>
</tbody>
</table>
<p>四句话总结出题人的脑回路：</p>
<ol>
<li><strong>视觉权重一路走高</strong>：从&#8221;无视觉&#8221;，到 OpenMV/K210，再到 K230/MaixCam；</li>
<li><strong>精确停靠越来越变态</strong>：从&#8221;到了就行&#8221;，到厘米级，再到毫米级；</li>
<li><strong>多车协同成为常客</strong>：单车 → 双车 → 多车，背后都是&#8221;通信 + 相对定位&#8221;；</li>
<li><strong>决策状态机不可或缺</strong>：题目里越来越多&#8221;识别完再决定往哪走&#8221;的环节，背后必然是一套状态机（这套东西《状态机与整车软件》会专门讲）。</li>
</ol>
<h2>那 2025 / 省赛，该往哪押？</h2>
<p>押题这事，没人能打包票，但顺着上面这条线，方向是可以判断的。多份器件清单分析和复盘给出的<strong>较高概率方向</strong>是：</p>
<ul>
<li><strong>复杂小车系统</strong>：小车 + 摄像头 + 云台 + 激光笔 + 感光纸绘图这类复合系统；或者&#8221;视觉循迹 + 精确停靠 + 双车 / 多车协同&#8221;的组合；</li>
<li><strong>主控大概率延续 TI MSPM0 系列</strong>（M0G3507）。2024 起电赛主推 TI 平台，这个惯性短期内不会变；</li>
<li><strong>视觉模块偏好紧凑型</strong>：因为车体尺寸卡得严，MaixCam 这类小模块更吃香；</li>
<li><strong>可能融合更多模态</strong>：摄像头 + 超声波 + 雷达；目标跟踪场景会用到卡尔曼滤波去抖。</li>
</ul>
<div class="ds-callout ds-callout-tip" style="border-left:4px solid #00bfa6;background:#00bfa614;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00bfa6"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 押题不是赌一道题，是赌一组能力</p>
<p>与其纠结&#8221;今年到底考不考送药&#8221;，不如反过来想：上面这些方向，<strong>公共的电控能力</strong>是哪几样？答案很集中—— &#8211; <strong>多路灰度 / 电磁循迹</strong>（差速控向）； &#8211; <strong>串级双环 PID</strong> + 一身&#8221;工程补丁&#8221;（积分限幅、抗饱和、分段切换）； &#8211; <strong>陀螺 / 编码器融合</strong>保航向、做里程兜底； &#8211; <strong>视觉模块只回传结论 + 帧协议通信</strong>； &#8211; <strong>一套能管&#8221;待命 / 直道 / 弯道 / 识别 / 停靠 / 丢线找回 / 急停&#8221;的状态机</strong>。</p>
<p>把这五样练扎实，不管今年出哪道题，你都接得住。这也正是本系列后面每一篇要带你逐个攻克的东西。</p>
</div>
<div class="ds-callout ds-callout-success" style="border-left:4px solid #00c853;background:#00c85314;padding:.6em 1em;margin:1.2em 0;border-radius:6px">
<p style="margin:0 0 .45em;font-weight:700;color:#00c853"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 一句话收尾</p>
<p>出题人不会跟你玩花活，他们在一条&#8221;走路 → 骑车 → 开车 → 自动驾驶&#8221;的主线上稳步加码。看懂这条线，你的备赛就有了主心骨：地基（电机、电源、感知）必须先稳，PID 必须吃透，视觉和状态机按方向补齐。</p>
</div>
<p>押对了方向，下一步就是动手搭车。三个人怎么分工、主控为什么选 TI MSPM0、怎么搭一套&#8221;算法和芯片解耦&#8221;的代码框架，让你在 STM32 上练通的东西能整段平移过去——这些就是整车搭建与代码框架那一篇要解决的事。</p>
<div class="ds-series" style="border:1px solid #4488ff33;background:#4488ff0d;border-radius:8px;padding:.8em 1.1em;margin:1.2em 0">
<p style="margin:0 0 .5em"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4da.png" alt="📚" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 本文是 <strong>「从 0 到 1 带你打电赛 · 小车电控篇」</strong> 系列（共 12 篇）第 2 篇。</p>
<ol style="margin:.2em 0 0;padding-left:1.4em">
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-01-how-to-score/">第1篇 · 拿奖逻辑：把比赛拆成小目标</a></li>
<li style="margin:.15em 0"><strong>第2篇 · 赛题进化史与押题（本篇）</strong></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-03-build-and-architecture/">第3篇 · 整车搭建与代码框架</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-04-motor-power/">第4篇 · 电机驱动与电源地基</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-05-sensing/">第5篇 · 感知：灰度/电磁/编码器/IMU</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-06-pid-basics/">第6篇 · PID 入门：搞懂 P/I/D</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-07-pid-advanced/">第7篇 · PID 进阶：串级+工程补丁</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-08-pid-tuning/">第8篇 · PID 调参实战(核心)</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-09-advanced-control/">第9篇 · 进阶控制：几时该上</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-10-vision-comm/">第10篇 · K230 视觉与通信协议</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-11-architecture-fsm/">第11篇 · 状态机与整车软件</a></li>
<li style="margin:.15em 0"><a href="https://cloudlay.cn/nuedc-car-12-field-manual/">第12篇 · 现场作战+避坑+开源</a></li>
</ol>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://cloudlay.cn/nuedc-car-02-history/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
