Torque

Forums

Forums

Arduino code questi...
 
Notifications
Clear all

Arduino code questions

2 Posts
2 Users
0 Reactions
1,007 Views
(@kduff9)
Posts: 3
Active Member
Topic starter
 

I've just started working with Torque and Arduino, using the code example in the Wiki.
Lots of questions, but I wanted to start with this-

In the code section-

void getConfiguration() {
mySerial.print(CONFIGURATION);
}

with the CONFIGURATION string set to -
"NO_CAR_SENSORS,NO_DEVICE_SENSORS"

I've inserted code to verify the 'void' is running and the string is set correctly.
Does this mean that when Torque is connected to the Arduino and I add a new gauge/dial, that the only items I have to choose from are the three in the example code?

"0", ANALOG, IS_INPUT, "-", "Pot 1", "Potentiometer 1", "v", "0", "5",
"1", ANALOG, IS_INPUT, "-", "LDR 1", "Light Sensor 1", "v", "0", "5",
"4", DIGITAL,IS_OUTPUT, "0", "Dout1", "Digital Out 1", "bit", "0", "1"

I can see these three items, but I also see a lot of other device and car choices.
I'm thinking they should be hidden?
I'm running an Arduino UNO and Torque version 1.8.154 on a Samsung S7 Active.

Thanks, Clark

 
Posted : 16/01/2017 2:16 am
(@nkemp)
Posts: 33
Eminent Member
 

Mine works similar to yours. I have loaded a set of custom PIDs for my daily driver and it seems that those are not displayed but a bunch of others are.

So not much help other than indicating similar confusing operation.

 
Posted : 04/04/2017 4:30 pm
Share:

  Follow me on twitter