This repository has been archived by the owner on Apr 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RobotMap.cpp
42 lines (33 loc) · 1.67 KB
/
RobotMap.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// RobotBuilder Version: 1.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 th future.
#include "RobotMap.h"
#include "LiveWindow/LiveWindow.h"
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
CANJaguar* RobotMap::driveTrainJaguarFrontLeft = NULL;
CANJaguar* RobotMap::driveTrainJaguarFrontRight = NULL;
CANJaguar* RobotMap::driveTrainJaguarBackLeft = NULL;
CANJaguar* RobotMap::driveTrainJaguarBackRight = NULL;
RobotDrive* RobotMap::driveTrainRobotDrive4 = NULL;
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
driveTrainJaguarFrontLeft = new CANJaguar(2);
driveTrainJaguarFrontRight = new CANJaguar(3);
driveTrainJaguarBackLeft = new CANJaguar(4);
driveTrainJaguarBackRight = new CANJaguar(6);
driveTrainRobotDrive4 = new RobotDrive(driveTrainJaguarFrontLeft, driveTrainJaguarFrontRight,
driveTrainJaguarBackLeft, driveTrainJaguarBackRight);
driveTrainRobotDrive4->SetSafetyEnabled(true);
driveTrainRobotDrive4->SetExpiration(0.1);
driveTrainRobotDrive4->SetSensitivity(0.5);
driveTrainRobotDrive4->SetMaxOutput(1.0);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}