Go to Post If you have a robot you don't need any more, use it for demos, or let a rookie team borrow it to learn wiring, programming, and demo around their school. - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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-02-2010, 22:09
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Crio does not accept new programs

Instead, it just spins the motor on port 1 at ~5% speed, weve even tried reformatting.

Help pls.

The code is just a dead simple make this motor go project
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2010, 22:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,717
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Crio does not accept new programs

  1. What language?
  2. What are the steps you follow to download?
  3. Can you create a brand-new default program and download that?
  4. What do the many status lights on the Driver Station show?
  5. What do the many status lights on the Digital sidecar show?
  6. Possibly a description of how you wired your robot might help.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2010 at 23:23.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2010, 22:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Crio does not accept new programs

Can you double-check your wiring? Odd behavior on the PWM outputs is often explained by not having the Digital Sidecar powered properly from a 20 amp breaker.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2010, 18:39
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Crio does not accept new programs

We did make sure everything was wired goodwise. We are using java. heres the code:

Code:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.*;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class EEARGH extends SimpleRobot
{

    Joystick xbox = new Joystick(1);
    Jaguar motor = new Jaguar(1);
    Jaguar otherMotor = new Jaguar(2);

    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public void autonomous() {
	while(isEnabled()) {
           motor.set(1);
           Timer.delay(5);
	   motor.set(0);
	   Timer.delay(5);
	}
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl()
    {
        getWatchdog().setEnabled(true);
        getWatchdog().feed();
        //boolean isReversed = false;
        double speed = xbox.getRawAxis(2);
        //motor.set(0);
        while(isOperatorControl())
        {
            otherMotor.set(-speed);
            getWatchdog().feed();
        }
    }
}
sometimes the motor just spins creepily by itself, without user input.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code deploys but does not save to cRIO Bill Taylor NI LabVIEW 11 15-02-2012 20:30
Downloading code: Netbeans does not reset cRIO ellisk Java 8 31-01-2010 19:02
Imaging Tool does not find cRIO aeasson FRC Control System 2 10-01-2010 20:39
cRIO Does Not Communicate, Yet Can Be Pinged and Re-Imaged 1951-44U FRC Control System 7 15-12-2009 21:25
Crio network light does not light when camera plugged in Bongle Programming 16 16-01-2009 11:00


All times are GMT -5. The time now is 19:20.

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