|
@@ -69,7 +69,7 @@ int Localization::Init() {
|
|
|
}
|
|
|
else if(car_input_mode == "pci")
|
|
|
{
|
|
|
-system("sudo chmod 666 /dev/acts2110-0");
|
|
|
+//system("sudo chmod 666 /dev/acts2110-0");
|
|
|
// 第一步 创建设备对象
|
|
|
hDevice = ACTS2110_DEV_Create(0, 0);
|
|
|
if (hDevice == NULL)
|
|
@@ -279,7 +279,7 @@ else if(car_input_mode == "pci"){
|
|
|
ros::Rate loop_rate(rate);
|
|
|
while(ros::ok())
|
|
|
{
|
|
|
- if (kbhit()) continue;
|
|
|
+// if (kbhit()) continue;
|
|
|
if (!ACTS2110_AI_ReadAnalog(hDevice, fVoltArray, nReadSampsPerChan, &nSampsPerChanRead, &nReadableSamps, fTimeout))
|
|
|
{
|
|
|
LOG(ERROR) << Name() <<"PCI Read Data Timeout nSampsPerChanRead=" << nSampsPerChanRead;
|