摘要: 算法思想简单描述:在插入第i个元素时,对前面的0~i-1元素进行折半,先跟他们 中间的那个元素比,如果小,则对前半再进行折半,否则对后半 进行折半,直到left>right,然后再把第i个元素前1位与目标位置之间 的所有元素后移,再把第i个元素放在目标位置上。 二分法排序最重要的一个步骤就是查... 阅读全文
posted @ 2015-08-10 23:00 IAmAProgrammer 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: Identifier filteringIn the CAN protocol the identifier of a message is not associated with the address of a nodebut related to the content of the mess... 阅读全文
posted @ 2015-08-10 02:37 IAmAProgrammer 阅读(6071) 评论(0) 推荐(0) 编辑
摘要: Canbus ID filter and maskCANBUS is a two-wire, half-duplex, bus based LANsystem that is ‘collision free’. Data is BROADCAST onto the bus -THERE IS NO ... 阅读全文
posted @ 2015-08-10 01:39 IAmAProgrammer 阅读(19160) 评论(0) 推荐(0) 编辑
摘要: Calculate CAN bit timing parametersTSYNC_SEG=== 1TSEG1 = Prop_Seg + Phase_Seg1TSEG2 = Phase_Seg2TBit = TSYNC_SEG + TSEG1 + TSEG2( TBit - TSEG2 ) / TBi... 阅读全文
posted @ 2015-08-10 00:22 IAmAProgrammer 阅读(12967) 评论(0) 推荐(0) 编辑