View Single Post
  #7   Spotlight this post!  
Unread 16-02-2016, 16:20
nollchr nollchr is offline
Registered User
FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Glastonbury, CT
Posts: 28
nollchr is an unknown quantity at this point
Re: Need Assistance: Issues with Robot Builder and code errors

Here is RobotMap.h
Code:
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


#ifndef ROBOTMAP_H
#define ROBOTMAP_H
#include "WPILib.h"


/**
 * The RobotMap is a mapping from the ports sensors and actuators are wired into
 * to a variable name. This provides flexibility changing wiring, makes checking
 * the wiring easier and significantly reduces the number of magic numbers
 * floating around.
 */
class RobotMap {
public:
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
	static std::shared_ptr<CANTalon> driveTrainCANTalonRight;
	static std::shared_ptr<CANTalon> driveTrainCANTalonLeft;
	static std::shared_ptr<RobotDrive> driveTrainRobotDrive;
	static std::shared_ptr<AnalogGyro> driveTrainGyro;
	static std::shared_ptr<AnalogInput> driveTrainMaxSonarAI;
	static std::shared_ptr<SpeedController> shooterElevationMotor;
	static std::shared_ptr<SpeedController> shooterFlyWheelMotor;
	static std::shared_ptr<SpeedController> shooterHookMotor;
	static std::shared_ptr<Encoder> shooterElevationEncoder;
	static std::shared_ptr<DigitalInput> shooterElevationHome;
	static std::shared_ptr<DigitalInput> shooterElevationMax;
	static std::shared_ptr<DigitalInput> shooterHookHome;
	static std::shared_ptr<DigitalInput> shooterHookMax;
	static std::shared_ptr<SpeedController> shooterBallKicker;
	static std::shared_ptr<DigitalInput> shooterBallSensor;

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS

	static void init();
};
#endif
Reply With Quote