|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
|||
|
|||
|
Re: Error: A timeout has been exceeded.
the most simple C++ robot builder system with a 4 motor chassis" does not even try to run the motors. It is basically a chassis.cpp subsystem that does nothing and the following Robotmap.cpp (all generated by Robot Builder)
// RobotBuilder Version: 1.5 // // 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. #include "RobotMap.h" #include "LiveWindow/LiveWindow.h" // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION SpeedController* RobotMap::chassisSpeedController1 = NULL; SpeedController* RobotMap::chassisSpeedController2 = NULL; SpeedController* RobotMap::chassisSpeedController3 = NULL; SpeedController* RobotMap::chassisSpeedController4 = NULL; RobotDrive* RobotMap::chassisRobotDrive41 = NULL; // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION void RobotMap::init() { // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS LiveWindow* lw = LiveWindow::GetInstance(); chassisSpeedController1 = new Talon(0); lw->AddActuator("Chassis", "Speed Controller 1", (Talon*) chassisSpeedController1); chassisSpeedController2 = new Talon(1); lw->AddActuator("Chassis", "Speed Controller 2", (Talon*) chassisSpeedController2); chassisSpeedController3 = new Talon(2); lw->AddActuator("Chassis", "Speed Controller 3", (Talon*) chassisSpeedController3); chassisSpeedController4 = new Talon(3); lw->AddActuator("Chassis", "Speed Controller 4", (Talon*) chassisSpeedController4); chassisRobotDrive41 = new RobotDrive(chassisSpeedController1, chassisSpeedController2, chassisSpeedController3, chassisSpeedController4); chassisRobotDrive41->SetSafetyEnabled(true); chassisRobotDrive41->SetExpiration(0.1); chassisRobotDrive41->SetSensitivity(0.5); chassisRobotDrive41->SetMaxOutput(1.0); // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|