Go to Post Now if MTV had an episode of "Made" where the school's top jock wanted to drive a FIRST's teams robot to victory...now that would be a good one. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 15-08-2016, 20:05
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 Having trouble with new robot program and Command.cpp

Hey all, I know summer CD is slow and the C++ subsection is basically dead during the summer, so I decided I should put this in general programming to get a bit more attention.

So down to the issue. I was doing my yearly rewrite of our code from this year, and when I go to run the code on the robot, the robot code crashes the DS says "No Robot Code". So I added some couts right at the start of Robot::Init and no dice either. No text is output which is very strange to me considering the first line should at least execute.

My next thought is to run it as a debugging program and I catch a glimpse of two errors in the console which I did not see before. Here they are:

Code:
0xb6fd7d40 in ?? () from c:\frc/lib/ld-linux.so.3
warning: Could not load shared library symbols for 15 libraries, e.g. /usr/local/frc/lib/libFRC_NetworkCommunication.so.16.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 7120]
[New Thread 7124]
[New Thread 7125]
[New Thread 7126]
[New Thread 7127]
[New Thread 7128]
[New Thread 7129]

Program received signal SIGSEGV, Segmentation fault.
0xb6e812a0 in pthread_mutex_lock () from c:\frc/lib/libpthread.so.0
Code:
ROBOT INIT!
AHRS Constructor!
[HAL] Starting task FRC_navX-MXP_IO...
SPI CRC err.    Length:   18, Got:    0; Calculated:   9
SPI CRC err.    Length:   18, Got:    15; Calculated:   97
SPI CRC err.    Length:   18, Got:    0; Calculated:   103
SPI CRC err.    Length:   82, Got:    255; Calculated:   63
Error at Requires [Command.cpp:115]: A pointer parameter to a method is nullptr: subsystem
    at /home/lvuser/FRCUserProgram() [0x6c928]
    at /home/lvuser/FRCUserProgram() [0x312ec]
    at /home/lvuser/FRCUserProgram() [0x2e304]
    at /home/lvuser/FRCUserProgram() [0x2b3e0]
    at /home/lvuser/FRCUserProgram() [0x3800c]
    at /home/lvuser/FRCUserProgram() [0x52c44]
    at /home/lvuser/FRCUserProgram() [0x2bcb4]
    at __libc_startc_main
I am digging through the c++ source code for wpilib and am stuck there. Any help would be greatly appreciated.

I also was looking through the debugger and this is what is shows. I am not really amazing at using and understanding the debugger, but I thought it would be useful.



My code is here: https://github.com/team2053tigertron.../OffSeason2016

- Drew
Reply With Quote
  #2   Spotlight this post!  
Unread 15-08-2016, 20:19
Andrew Lobos Andrew Lobos is offline
FTC4977/FRC225 Alum
FRC #0225 (TechFire)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Lancaster, PA
Posts: 59
Andrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the rough
Re: Having trouble with new robot program and Command.cpp

I think your pointer to timer is null in the constructor of IntakeRoller in Commands/Intake/IntakeRoller.cpp
__________________
2012-2014: 225 Driver, Programmer & Co-Captain
2012-2014: FTC 4977 Driver, Programmer, & Team Captain
2011: 225 Operator & Programmer

2013: FRC: Springside-Chestnut Hill Winner (w/341 & 1495), Midknight Mayhem Winner (w/316, 369, & 869), Battle O' Baltimore Winner (w/1640, 2914 & 339), Duel on the Delaware Finalist (w/816 & 369), Ramp Riot Winner (w/341, 304, & 4637) FTC: PA State Finalist
2014: FRC: Springside-Chestnut Hill Winner (w/316 & 1495), Greater DC Winner (w/1731 & 4464), Midknight Mayhem Winner (w/25, 1626 & 329) FTC: PA State Champion
Reply With Quote
  #3   Spotlight this post!  
Unread 15-08-2016, 20:29
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: Having trouble with new robot program and Command.cpp

That was the issue! Thanks for the help! It probably should have stuck out to me more.

Drew
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 14:34.

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