Search in sources :

Example 16 with WaypointSequence

use of com.team254.lib_2014.trajectory.WaypointSequence in project Relic_Main by TeamOverdrive.

the class HoldMyPaths method calculateBlueFarLeftToGlyphPit.

public static void calculateBlueFarLeftToGlyphPit() {
    if (farBlueLeftToGlyphPit == null) {
        WaypointSequence waypointSequence = new WaypointSequence(5);
        waypointSequence.addWaypoint(new WaypointSequence.Waypoint(0, 0, 0));
        waypointSequence.addWaypoint(new WaypointSequence.Waypoint(13, 1, 0));
        waypointSequence.addWaypoint(new WaypointSequence.Waypoint(41, -8, Math.toRadians(-23)));
        farBlueLeftToGlyphPit = PathGenerator.makePath(waypointSequence, Constants.aggressiveTrajectoryConfig, WHEEL_BASE, "");
    }
}
Also used : WaypointSequence(com.team254.lib_2014.trajectory.WaypointSequence)

Aggregations

WaypointSequence (com.team254.lib_2014.trajectory.WaypointSequence)16 Path (com.team254.lib_2014.trajectory.Path)7 TrajectoryGenerator (com.team254.lib_2014.trajectory.TrajectoryGenerator)7 Trajectory (com.team254.lib_2014.trajectory.Trajectory)2