Go to Post Act humble, avoid hubris, and post widely and thou shalt receivith postive rep. ;) - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-06-2015, 06:34 PM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Exclamation CANJaguar error with 2015 C++ port sendMessage

Hello again!

I have another error with the CANJaguar code when enabling the robot. All of our code compiles and deploys successfully, however, when we enable the robot our driver station spits out this error

Code:
Error on line 492 of CANJaguar.cpp: sendMessage
	at /home/lvuser/FRCUserProgram() [0x17088]
	at /home/lvuser/FRCUserProgram() [0x17250]
	at /home/lvuser/FRCUserProgram() [0x187e8]
	at /home/lvuser/FRCUserProgram() [0x16b64]
	at /home/lvuser/FRCUserProgram() [0x1d9b4]
	at /home/lvuser/FRCUserProgram() [0xf754]
	at /home/lvuser/FRCUserProgram() [0x134f4]
	at /home/lvuser/FRCUserProgram() [0x29f90]
	at /home/lvuser/FRCUserProgram() [0x30e54]
	at /home/lvuser/FRCUserProgram() [0xfdd8]
	at /home/lvuser/FRCUserProgram() [0x155b4]
	at /home/lvuser/FRCUserProgram() [0x1bbfc]
	at /home/lvuser/FRCUserProgram() [0xfee4]
	at __libc_start_main
And I went to look at CANJaguar at line 492 and this is the function:

Code:
void CANJaguar::sendMessage(uint32_t messageID, const uint8_t *data, uint8_t dataSize, int32_t period)
{
	int32_t localStatus = sendMessageHelper(messageID | m_deviceNumber, data, dataSize, period);

	if(localStatus < 0)
	{
		wpi_setErrorWithContext(localStatus, "sendMessage");
	}
}
Do you guys have any ideas on what this error actually is and how we could fix it?

Thanks,
Drew
Reply With Quote
  #2   Spotlight this post!  
Unread 01-06-2015, 06:37 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: CANJaguar error with 2015 C++ port sendMessage

Have you updated the Jaguar to v109 firmware? Have you checked using the roboRIO webdash that the roboRIO can see the Jaguar you are trying to talk to and that the ID is what you expect?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-06-2015, 06:41 PM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: CANJaguar error with 2015 C++ port sendMessage

Yeah, we have updated all of the jags to v109, however we cannot see the jags in the roboRIO panel. It only shows the PDP and the PCM. We have the roboRIO as the start of the CAN network and the terminator as one of the jags. We also have set the PDP terminator jumper switch to off, so it should be able to detect the jags after the PDP.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-06-2015, 07:23 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: CANJaguar error with 2015 C++ port sendMessage

Quote:
Originally Posted by jreneew2 View Post
Yeah, we have updated all of the jags to v109, however we cannot see the jags in the roboRIO panel. It only shows the PDP and the PCM. We have the roboRIO as the start of the CAN network and the terminator as one of the jags. We also have set the PDP terminator jumper switch to off, so it should be able to detect the jags after the PDP.
If they don't show up in the webdashboard they won't work in your code either. That's the issue to solve first. It sounds like the most likely causes would be your convertor between the twisted pair and RJ connector is not wired correctly or your termination is not correct.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-06-2015, 07:48 PM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: CANJaguar error with 2015 C++ port sendMessage

Thanks! I'll try that. Our meeting is over today so I don't have the robot on me at the moment. (I wish we could afford some talon srx's right now!)



-Drew
Reply With Quote
  #6   Spotlight this post!  
Unread 01-08-2015, 12:14 AM
PaulDavis1968's Avatar
PaulDavis1968 PaulDavis1968 is offline
Embedded Software/Systems Engineer
AKA: Master of Complexity
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Endicot NY
Posts: 91
PaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nicePaulDavis1968 is just really nice
Re: CANJaguar error with 2015 C++ port sendMessage

It was a wiring issue with the JAGs.

Thanks for the help.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:56 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi