Go to Post The major items of FIRST are still what they always were.....understand the game, build a reliable quality machine to play it, train you drivers to use it to its full potential. If you do these things, you can win with or without any specific machine feature. - Jim Zondag [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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: 192
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
 


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:21.

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