Go to Post However, as a philosopher, while you need math, you can probably talk your way out of it. - sciguy125 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Spotlight this post!  
Unread 07-02-2015, 21:48
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Use of JoystickButton in Command Based does not activate PCM

Quote:
Originally Posted by ozrien View Post
Jared, is your team also using C++?
We're using Java.

When we deploy code, we can read current draw/temperature of the PDP. After restarting the roboRIO, we can no longer read the current draw/temperature, and CPU usage is very high. If we click the "restart user code" button, the cpu usage decreases, and CAN works. If we click the "reboot roboRIO" button, the cpu usage decreases, and CAN works again.

We solved the problem by reimaging the controller. Waiting a long period of time (10 minutes) between power on and enabling the robot did not solve the problem.

When this happened, I logged into the roboRIO and used the top command to see what was using all of the CPU usage, and it was the FRC user program. Starting and stopping the user program caused it to work normally. I also tried editing the script that starts the user program so that it did nothing, then manually started our user program, which resulted in the program running normally, confirming that the problem only happens if the user code is started as the control system is booting.
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 14:50.

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