<?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>ECU算法 &#8211; 上海同星智能科技有限公司</title>
	<atom:link href="https://www.tosunai.com/tag/ecu%E7%AE%97%E6%B3%95/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tosunai.com</link>
	<description>Engineer Everything!</description>
	<lastBuildDate>Thu, 06 Feb 2025 08:00:57 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://www.tosunai.com/wp-content/uploads/2024/09/112x112-100x100.webp</url>
	<title>ECU算法 &#8211; 上海同星智能科技有限公司</title>
	<link>https://www.tosunai.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-04/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Tue, 27 Sep 2022 08:20:58 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[ECU算法]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[TSMaster]]></category>
		<category><![CDATA[车载以太网]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=803</guid>

					<description><![CDATA[<p>本文主要介绍如何基于TSMaster打通ECU算法与整车模型之间的桥梁。 一、SDK融入TSMaster运行环 [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-04/">TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="803" class="elementor elementor-803" data-elementor-settings="{&quot;element_pack_global_tooltip_width&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_widescreen&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_laptop&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_tablet_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_mobile_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_width_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;element_pack_global_tooltip_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_widescreen&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_laptop&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_tablet_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_mobile_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_padding_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_widescreen&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_laptop&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_tablet_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_mobile_extra&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true},&quot;element_pack_global_tooltip_border_radius_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;&quot;,&quot;right&quot;:&quot;&quot;,&quot;bottom&quot;:&quot;&quot;,&quot;left&quot;:&quot;&quot;,&quot;isLinked&quot;:true}}" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-08b9004 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="08b9004" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3fe1b0" data-id="e3fe1b0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d9abbf3 elementor-widget elementor-widget-text-editor" data-id="d9abbf3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>本文主要介绍如何基于TSMaster打通ECU算法与整车模型之间的桥梁。</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2b3e6b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2b3e6b2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9a03180" data-id="9a03180" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b894cd elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="1b894cd" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0add86c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0add86c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e968e0c" data-id="e968e0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c687060 elementor-widget elementor-widget-heading" data-id="c687060" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>一、SDK融入TSMaster运行环境</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-87dd0a3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="87dd0a3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f8b8eb7" data-id="f8b8eb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d24b65f elementor-widget elementor-widget-text-editor" data-id="d24b65f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">由于此视频采用了CarSim controller自带的CarSim engine客户端，需要对代码库做一些配置，也就是需要引用CarSim controller开发包的相关sdk文件。我们打开ABS算法小程序的代码库。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">向上进入common文件夹，这个文件夹可存放多个小程序公共的头文件和代码文件，我们将SDK文件拖入此文件夹中。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接着转到全局定义中，第一行代码，引用一个C++头文件 #include &#8220;CarSimAPIUtilities.hpp&#8221;。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3fbde55 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3fbde55" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d5b5c27" data-id="d5b5c27" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1a74d75 elementor-widget elementor-widget-image" data-id="1a74d75" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img fetchpriority="high" decoding="async" width="954" height="537" src="https://www.tosunai.com/wp-content/uploads/2022/09/2.png" class="attachment-large size-large wp-image-814" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/2.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/2-800x450.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/2-300x169.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/2-768x432.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/2-18x10.png 18w" sizes="(max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 10">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a2defd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a2defd3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6cdb249" data-id="6cdb249" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b40b90 elementor-widget elementor-widget-text-editor" data-id="1b40b90" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">随后点击编译，可以看到，SDK也融入了TSMaster的运行环境中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7aeb341 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7aeb341" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f2f8312" data-id="f2f8312" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5f4745d elementor-widget elementor-widget-heading" data-id="5f4745d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>二、SDK控制动力学模型</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a3d35b3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a3d35b3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b015749" data-id="b015749" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5d569fe elementor-widget elementor-widget-text-editor" data-id="5d569fe" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接下来我们就可以通过调用SDK来轻松控制动力学模型了。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们可以使用CarSim engine自带的这 47 个API函数来操作CarSim，当然也可以选用基于CarSim engine开发的SDK来实现，相比起来SDK的函数更加简洁，它将整个 CarSim的控制分为三个阶段：初始化、运行、和结束运行。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">初始化函数名为 callback_setup，放在程序启动事件中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b96f503 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b96f503" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ce9d965" data-id="ce9d965" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-99f8ffd elementor-widget elementor-widget-image" data-id="99f8ffd" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="947" height="526" src="https://www.tosunai.com/wp-content/uploads/2022/09/3.png" class="attachment-large size-large wp-image-815" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/3.png 947w, https://www.tosunai.com/wp-content/uploads/2022/09/3-800x444.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/3-300x167.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/3-768x427.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/3-18x10.png 18w" sizes="(max-width: 947px) 100vw, 947px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 11">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4849865 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4849865" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0076096" data-id="0076096" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-dc22e7f elementor-widget elementor-widget-text-editor" data-id="dc22e7f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">运行函数名为 callback_start_carsim，放在step函数中，并且让它只执行一次；这需要再申请一个全局变<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">量 vToStart，来实现单次操作。</span></span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4240d2e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4240d2e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2776dd7" data-id="2776dd7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-206fb35 elementor-widget elementor-widget-image" data-id="206fb35" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="956" height="551" src="https://www.tosunai.com/wp-content/uploads/2022/09/4.png" class="attachment-large size-large wp-image-816" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/4.png 956w, https://www.tosunai.com/wp-content/uploads/2022/09/4-800x461.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/4-300x173.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/4-768x443.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/4-18x10.png 18w" sizes="(max-width: 956px) 100vw, 956px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 12">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b8b07b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b8b07b1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a46bfbe" data-id="a46bfbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-015b5e9 elementor-widget elementor-widget-text-editor" data-id="015b5e9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">结束运行函数名为 callback_teardown，放在程序停止事件中；</span><span style="max-width: 100%; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;">写完后我们编译程序，运行程序。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39106ac elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39106ac" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a34a1b3" data-id="a34a1b3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b810f54 elementor-widget elementor-widget-heading" data-id="b810f54" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">三、车辆加速仿真试验</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-dc10f84 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="dc10f84" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51960a6" data-id="51960a6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a24aa66 elementor-widget elementor-widget-text-editor" data-id="a24aa66" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接下来我们尝试加速车辆，并在车速高于80kph时，紧急制动，要完成这个操作，只需要在我们的ABS小程序中，再自 定义两个API函数即可，我们将这两个函数分别命名为acc和brake。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">在acc中，我们操纵油门，此时需要到CarSim controller<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">中拷贝输入变量名，throttle，cs-</span></span><span style="font-size: 14px; letter-spacing: 1.6px;">&gt;IMP_THROTTLE_ENGINE = 0.6;</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d0254e3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d0254e3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aeb137b" data-id="aeb137b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-509071d elementor-widget elementor-widget-image" data-id="509071d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="954" height="546" src="https://www.tosunai.com/wp-content/uploads/2022/09/5.png" class="attachment-large size-large wp-image-817" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/5.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/5-800x458.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/5-300x172.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/5-768x440.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/5-18x10.png 18w" sizes="auto, (max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 13">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f7ef766 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f7ef766" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bbc5f3d" data-id="bbc5f3d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b12d84a elementor-widget elementor-widget-text-editor" data-id="b12d84a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">在brake中，我们模拟驾驶员以150 bar的压力踩下制动踏板进行紧急制动，这就需要设置主缸压力为15MPa，我们设置一个全局变量 vPMC 来接收这个主缸压力，同时，还需要到全局定义中声明这个 vPMC。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f613aa0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f613aa0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09265a9" data-id="09265a9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f9dca9e elementor-widget elementor-widget-image" data-id="f9dca9e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="954" height="534" src="https://www.tosunai.com/wp-content/uploads/2022/09/6.png" class="attachment-large size-large wp-image-818" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/6.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/6-800x448.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/6-300x168.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/6-768x430.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/6-18x10.png 18w" sizes="auto, (max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 14">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5aa5f3b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5aa5f3b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59f8622" data-id="59f8622" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9434974 elementor-widget elementor-widget-text-editor" data-id="9434974" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">为了对比有无ABS的制动效果，我们首先尝试没有ABS算法的情况，那么这个压力将直接作用在四个轮缸上，这里还需声明一个变量 vHasABS，默认为假。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40eeec1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40eeec1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ff33745" data-id="ff33745" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5213d2b elementor-widget elementor-widget-image" data-id="5213d2b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="958" height="525" src="https://www.tosunai.com/wp-content/uploads/2022/09/7.png" class="attachment-large size-large wp-image-819" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/7.png 958w, https://www.tosunai.com/wp-content/uploads/2022/09/7-800x438.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/7-300x164.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/7-768x421.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/7-18x10.png 18w" sizes="auto, (max-width: 958px) 100vw, 958px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 15">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e17dfb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e17dfb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a1c839" data-id="5a1c839" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b254f74 elementor-widget elementor-widget-text-editor" data-id="b254f74" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接着来到step函数中，通过 vHasABS 来区分算法的执行与否，若没有执行算法，则直接赋值轮缸压力。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">完成逻辑之后，我们需要观测轮速和压力，这些变量都来自于整车模型，如何观测呢？我们可以使用小程序的变量将其表达出来。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-18dd85c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="18dd85c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-438ea1d" data-id="438ea1d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-48ab740 elementor-widget elementor-widget-image" data-id="48ab740" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="568" src="https://www.tosunai.com/wp-content/uploads/2022/09/8-1-1024x568.jpg" class="attachment-large size-large wp-image-820" alt="TSMasterHIL实时仿真系列4-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/8-1-1024x568.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-800x444.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-300x166.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-768x426.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1.jpg 1492w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 16">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-92bf35c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="92bf35c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-870e802" data-id="870e802" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0a1a64e elementor-widget elementor-widget-text-editor" data-id="0a1a64e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">转到变量组上，点击右键添加变量表，依次输入车速，行驶距离，油门，各个轮速和各个压力值。点击确定后，一系列变量变申明好了，与全局定义不同的是，这些变量是系统变量，可以被其他小程序，或是被<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">graphics或者面板等等窗口获取并自动绘制曲线。</span></span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们回到step函数，需要依次对这些系统变量进行赋值，赋值使用set操作</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">v.set(cs-&gt;VX); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">station.set(cs-&gt;STATION);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">throttle.set(cs-&gt;IMP_THROTTLE_ENGINE); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vFL.set(cs-&gt;VX_L1);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vFR.set(cs-&gt;VX_R1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vRL.set(cs-&gt;VX_L2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vRR.set(cs-&gt;VX_R2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pFL.set(cs-&gt;IMP_PBK_L1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pFR.set(cs-&gt;IMP_PBK_R1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pRL.set(cs-&gt;IMP_PBK_L2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pRR.set(cs-&gt;IMP_PBK_R2);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">随后运行程序，打开系统变量表，就可以看到我们为这个小程序添加的一系列监控变量。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-67d761b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="67d761b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ee2448" data-id="2ee2448" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28ff981 elementor-widget elementor-widget-image" data-id="28ff981" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="574" src="https://www.tosunai.com/wp-content/uploads/2022/09/9-1-1024x574.jpg" class="attachment-large size-large wp-image-821" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/9-1-1024x574.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-800x449.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-300x168.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-768x431.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1.jpg 1476w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 17">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6271dce elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6271dce" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b4eb8f2" data-id="b4eb8f2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d6a5c5d elementor-widget elementor-widget-text-editor" data-id="d6a5c5d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们打开graphics，将图形分为三栏，上栏显示速度，中栏显示压力，下栏显示油门和行驶距离等信息，随后添加各个系统变量进行观测。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d0b0d9b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d0b0d9b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-af9e0b5" data-id="af9e0b5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-293457f elementor-widget elementor-widget-image" data-id="293457f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="560" src="https://www.tosunai.com/wp-content/uploads/2022/09/10-1-1024x560.jpg" class="attachment-large size-large wp-image-822" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/10-1-1024x560.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-800x437.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-300x164.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-768x420.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1.jpg 1486w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 18">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-fa9c885 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="fa9c885" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f3479b2" data-id="f3479b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-13d4e77 elementor-widget elementor-widget-text-editor" data-id="13d4e77" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">再转到自动化模块中，将我们现有的逻辑做一些修改，也就是启动后等待车辆加速到80公里每小时，再进行制动，只有制动到车速为0时，才停止仿真。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-04/">TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
