智能车制作

 找回密码
 注册

扫一扫,访问微社区

查看: 1374|回复: 6
打印 上一主题 下一主题

[咨询] 波浪式抖动

[复制链接]

13

主题

59

帖子

0

精华

高级会员

Rank: 4

积分
653
威望
395
贡献
150
兑换币
166
注册时间
2013-1-9
在线时间
54 小时
毕业学校
西安工程大学
跳转到指定楼层
1#
发表于 2013-3-13 14:42:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
哪位大神帮忙看看我用的s12+COMS采集的图像发到上位机有波浪式的抖动,这是车不动时截的图片,这种情况属于正常吗?怎样才能改进?谢谢各位大侠指导

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x

36

主题

1837

帖子

3

精华

跨届大侠

Rank: 10Rank: 10Rank: 10

积分
6375
威望
3368
贡献
1847
兑换币
2326
注册时间
2013-2-3
在线时间
580 小时
2#
发表于 2013-3-13 14:45:47 | 只看该作者
中间是不是丢了若干行?
回复 支持 反对

使用道具 举报

13

主题

59

帖子

0

精华

高级会员

Rank: 4

积分
653
威望
395
贡献
150
兑换币
166
注册时间
2013-1-9
在线时间
54 小时
毕业学校
西安工程大学
3#
 楼主| 发表于 2013-3-13 15:17:18 | 只看该作者
灰原姐姐 发表于 2013-3-13 14:45
中间是不是丢了若干行?

不应该啊!就采集了40行,前六行没有采集,采集从第七行开始每个五行采集一行
interrupt 8 void HREF_Count(void)
{
  TFLG1_C0F = 1;
  m++;
  if ( m<6 || m>200 )      
  {
    return;//判断是否从新的一场开始
  }
  
  Interval=5;
  if(m%Interval==0)                    
  {
_asm(nop);
        // _asm(nop);
        //_asm(nop);
         //_asm(nop);
       //delays(8);
Image_Data[Line_C][0] = PORTA;
Image_Data[Line_C][1] = PORTA;
Image_Data[Line_C][2] = PORTA;
Image_Data[Line_C][3] = PORTA;
Image_Data[Line_C][4] = PORTA;
Image_Data[Line_C][5] = PORTA;
Image_Data[Line_C][6] = PORTA;  
Image_Data[Line_C][7] = PORTA;
Image_Data[Line_C][8] = PORTA;
Image_Data[Line_C][9] = PORTA;  
Image_Data[Line_C][10] = PORTA;
Image_Data[Line_C][11] = PORTA;
Image_Data[Line_C][12] = PORTA;
Image_Data[Line_C][13] = PORTA;
Image_Data[Line_C][14] = PORTA;
Image_Data[Line_C][15] = PORTA;
Image_Data[Line_C][16] = PORTA;
Image_Data[Line_C][17] = PORTA;
Image_Data[Line_C][18] = PORTA;   
Image_Data[Line_C][19] = PORTA;  
Image_Data[Line_C][20] = PORTA;   
Image_Data[Line_C][21] = PORTA;   
Image_Data[Line_C][22] = PORTA;   
Image_Data[Line_C][23] = PORTA;   
Image_Data[Line_C][24] = PORTA;     
Image_Data[Line_C][25] = PORTA;     
Image_Data[Line_C][26] = PORTA;   
Image_Data[Line_C][27] = PORTA;   
Image_Data[Line_C][28] = PORTA;     
Image_Data[Line_C][29] = PORTA;   
Image_Data[Line_C][30] = PORTA;   
Image_Data[Line_C][31] = PORTA;     
Image_Data[Line_C][32] = PORTA;      
Image_Data[Line_C][33] = PORTA;      
Image_Data[Line_C][34] = PORTA;      
Image_Data[Line_C][35] = PORTA;      
Image_Data[Line_C][36] = PORTA;      
Image_Data[Line_C][37] = PORTA;      
Image_Data[Line_C][38] = PORTA;      
Image_Data[Line_C][39] = PORTA;      
Image_Data[Line_C][40] = PORTA;      
Image_Data[Line_C][41] = PORTA;      
Image_Data[Line_C][42] = PORTA;      
Image_Data[Line_C][43] = PORTA;      
Image_Data[Line_C][44] = PORTA;      
Image_Data[Line_C][45] = PORTA;      
Image_Data[Line_C][46] = PORTA;        
Image_Data[Line_C][47] = PORTA;        
Image_Data[Line_C][48] = PORTA;        
Image_Data[Line_C][49] = PORTA;      
Image_Data[Line_C][50] = PORTA;      
Image_Data[Line_C][51] = PORTA;      
Image_Data[Line_C][52] = PORTA;         
Image_Data[Line_C][53] = PORTA;        
Image_Data[Line_C][54] = PORTA;        
Image_Data[Line_C][55] = PORTA;         
Image_Data[Line_C][56] = PORTA;        
Image_Data[Line_C][57] = PORTA;         
Image_Data[Line_C][58] = PORTA;        
Image_Data[Line_C][59] = PORTA;        
Image_Data[Line_C][60] = PORTA;        
Image_Data[Line_C][61] = PORTA;        
Image_Data[Line_C][62] = PORTA;         
Image_Data[Line_C][63] = PORTA;         
Image_Data[Line_C][64] = PORTA;         
Image_Data[Line_C][65] = PORTA;        
Image_Data[Line_C][66] = PORTA;        
Image_Data[Line_C][67] = PORTA;         
Image_Data[Line_C][68] = PORTA;         
Image_Data[Line_C][69] = PORTA;           
Image_Data[Line_C][70] = PORTA;         
Image_Data[Line_C][71] = PORTA;           
Image_Data[Line_C][72] = PORTA;         
Image_Data[Line_C][73] = PORTA;           
Image_Data[Line_C][74] = PORTA;           
Image_Data[Line_C][75] = PORTA;           
Image_Data[Line_C][76] = PORTA;           
Image_Data[Line_C][77] = PORTA;
Image_Data[Line_C][78] = PORTA;                     
Image_Data[Line_C][79] = PORTA;            
Image_Data[Line_C][80] = PORTA;            
Image_Data[Line_C][81] = PORTA;           
Image_Data[Line_C][82] = PORTA;            
Image_Data[Line_C][83] = PORTA;              
Image_Data[Line_C][84] = PORTA;              
Image_Data[Line_C][85] = PORTA;              
Image_Data[Line_C][86] = PORTA;              
Image_Data[Line_C][87] = PORTA;            
Image_Data[Line_C][88] = PORTA;            
Image_Data[Line_C][89] = PORTA;            
Image_Data[Line_C][90] = PORTA;            
Image_Data[Line_C][91] = PORTA;            
Image_Data[Line_C][92] = PORTA;              
Image_Data[Line_C][93] = PORTA;              
Image_Data[Line_C][94] = PORTA;               
Image_Data[Line_C][95] = PORTA;            
Image_Data[Line_C][96] = PORTA;              
Image_Data[Line_C][97] = PORTA;               
Image_Data[Line_C][98] = PORTA;               
Image_Data[Line_C][99] = PORTA;               
Image_Data[Line_C][100] = PORTA;               
Image_Data[Line_C][101] = PORTA;               
Image_Data[Line_C][102] = PORTA;               
Image_Data[Line_C][103] = PORTA;                 
Image_Data[Line_C][104] = PORTA;               
Image_Data[Line_C][105] = PORTA;                 
Image_Data[Line_C][106] = PORTA;           
Image_Data[Line_C][107] = PORTA;           
Image_Data[Line_C][108] = PORTA;           
Image_Data[Line_C][109] = PORTA;           
Image_Data[Line_C][110] = PORTA;            
Image_Data[Line_C][111] = PORTA;            
Image_Data[Line_C][112] = PORTA;            
Image_Data[Line_C][113] = PORTA;            
Image_Data[Line_C][114] = PORTA;            
Image_Data[Line_C][115] = PORTA;               
Image_Data[Line_C][116] = PORTA;               
Image_Data[Line_C][117] = PORTA;               
Image_Data[Line_C][118] = PORTA;              
Image_Data[Line_C][119] = PORTA;              
Image_Data[Line_C][120] = PORTA;               
Image_Data[Line_C][121] = PORTA;               
Image_Data[Line_C][122] = PORTA;                 
Image_Data[Line_C][123] = PORTA;               
Image_Data[Line_C][124] = PORTA;                  
Image_Data[Line_C][125] = PORTA;                  
Image_Data[Line_C][126] = PORTA;                    
Image_Data[Line_C][127] = PORTA;                     
Image_Data[Line_C][128] = PORTA;
Image_Data[Line_C][129] = PORTA;                  
    Line_C++;
  }
  
}
如果每六行采集一样的话会有错位和抖动,所以就改为每五行采集一样,大侠麻烦帮出出主意,小弟谢啦!
回复 支持 反对

使用道具 举报

4

主题

406

帖子

0

精华

跨届大侠

Rank: 10Rank: 10Rank: 10

积分
10980
威望
5409
贡献
3229
兑换币
2948
注册时间
2011-8-7
在线时间
1171 小时
4#
发表于 2013-3-13 20:47:01 | 只看该作者
你说的是不是一行一行刷新下来。。由远到近,每一幅图都跟比前一幅图有一定位移?场中断没搞吧?
回复 支持 反对

使用道具 举报

13

主题

59

帖子

0

精华

高级会员

Rank: 4

积分
653
威望
395
贡献
150
兑换币
166
注册时间
2013-1-9
在线时间
54 小时
毕业学校
西安工程大学
5#
 楼主| 发表于 2013-3-13 21:44:05 | 只看该作者
mingongB 发表于 2013-3-13 20:47
你说的是不是一行一行刷新下来。。由远到近,每一幅图都跟比前一幅图有一定位移?场中断没搞吧?

大神你说的太对了,就是那样的,场中断有啊!判断场中断采集够一场数据才发给上位机,至于这个场中断进去了没就不明确了,还望指教啊!怎么做可以避免这样的问题发生?谢谢啦!不胜感激啊!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

4

主题

406

帖子

0

精华

跨届大侠

Rank: 10Rank: 10Rank: 10

积分
10980
威望
5409
贡献
3229
兑换币
2948
注册时间
2011-8-7
在线时间
1171 小时
6#
发表于 2013-3-14 14:31:42 | 只看该作者
我想都是你可以自己解决的问题,问题还有可能出在和串口的通讯上,先猜想再一一排除咯,祝你成功~
回复 支持 反对

使用道具 举报

13

主题

59

帖子

0

精华

高级会员

Rank: 4

积分
653
威望
395
贡献
150
兑换币
166
注册时间
2013-1-9
在线时间
54 小时
毕业学校
西安工程大学
7#
 楼主| 发表于 2013-3-16 22:22:53 | 只看该作者
mingongB 发表于 2013-3-14 14:31
我想都是你可以自己解决的问题,问题还有可能出在和串口的通讯上,先猜想再一一排除咯,祝你成功~

非常谢谢你!问题出在行场中断的开关时间上,我把开关中断的时序调整了下,图像比以前就稳定的多了,嘿嘿。。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关于我们|联系我们|小黑屋|智能车制作 ( 黑ICP备2022002344号

GMT+8, 2024-9-22 06:50 , Processed in 0.044513 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表