I’m attempting to read the actual steer angle from PGN 253 and not having much luck. I stripped the machine.ino down to bare bones to simplify things for me. I can read gpsSpeed from 239 so I think I’m on the right track. I’m also testing if the PNG 253 exists with a print statement which never prints.
Thanks
As far as I know there haven’t been any PGN changes. What IP address and port are you listening on?
IPAddress myIP = { 192, 168, 5, 123 };
uint16_t udpListenPort = 8888; // UDP port to listen for AOG PGNs
uint16_t udpSendPort = 9999;
I connect to AOG in simulator to read speed, but I get nothing trying the angle. Nor do I get my print statement saying I’m inside the test.
253 is sent from the steer board, not from AOG.
Well, that could be the problem!! Sorta makes sense when I think of it! I’ll give it a try tomorrow. Thanks
If you’re wanting to receive the PGN coming from the steer board you’ll have to setup another UDP object to listen to 9999 (same port AOG receives on) and remember to ignore all the other PGNs. You’ll essentially be listening to the same PGNs that are being sent out on 8888 coming back in 9999.
2 Likes
Set the 2nd UDP listener and a a little rearranging of code and walla I’m reading the steer angle… Thanks guys
2 Likes