scriping only working when PC attached
Posted: Fri Jun 23, 2017 6:21 pm
Hi All,
I have been trying to get RCP Mk3 to perform automatic SD card data logging but have not been successful.
I made it as simple as possible entering "startLogging()" in the onTick function and discovered that it only works when my PC is attached to RCP via USB. If I disconnect the PC logging never starts. Also I was somewhat surprised when at the track last weekend by the overall operation of SD card logging. I rewired the power supply for RCP to be hot whenever the battery disconnect switch was on and started logging with the action button while the car was still in the paddock. I did this because it is sometimes necessary to switch off the engine while waiting on the grid before the race starts, previously RCP power was via ignition switch. Anyway after the race I found two logs on the card one that I started and one that started by itself after the car was restarted on the grid. (There was no remaining script to control logging in my setup, other than "if getActionButton() > 0 then startLogging() end", which was not pressed a second time). Is there built-in code that causes this behavior?
I have been trying to get RCP Mk3 to perform automatic SD card data logging but have not been successful.
I made it as simple as possible entering "startLogging()" in the onTick function and discovered that it only works when my PC is attached to RCP via USB. If I disconnect the PC logging never starts. Also I was somewhat surprised when at the track last weekend by the overall operation of SD card logging. I rewired the power supply for RCP to be hot whenever the battery disconnect switch was on and started logging with the action button while the car was still in the paddock. I did this because it is sometimes necessary to switch off the engine while waiting on the grid before the race starts, previously RCP power was via ignition switch. Anyway after the race I found two logs on the card one that I started and one that started by itself after the car was restarted on the grid. (There was no remaining script to control logging in my setup, other than "if getActionButton() > 0 then startLogging() end", which was not pressed a second time). Is there built-in code that causes this behavior?