Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | #ifndef y2020_ACTORS_AUTO_SPLINES_H_ |
| 2 | #define y2020_ACTORS_AUTO_SPLINES_H_ |
| 3 | |
| 4 | #include "aos/events/event_loop.h" |
James Kuszmaul | ddd2ba6 | 2020-03-08 22:17:13 -0700 | [diff] [blame] | 5 | #include "aos/robot_state/joystick_state_generated.h" |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 6 | #include "frc971/control_loops/control_loops_generated.h" |
| 7 | #include "frc971/control_loops/drivetrain/drivetrain_goal_generated.h" |
| 8 | /* |
| 9 | |
| 10 | The cooridinate system for the autonomous splines is the same as the spline |
| 11 | python generator and drivetrain spline systems. |
| 12 | |
| 13 | */ |
| 14 | |
| 15 | namespace y2020 { |
| 16 | namespace actors { |
| 17 | |
| 18 | class AutonomousSplines { |
| 19 | public: |
| 20 | static flatbuffers::Offset<frc971::MultiSpline> BasicSSpline( |
James Kuszmaul | ddd2ba6 | 2020-03-08 22:17:13 -0700 | [diff] [blame] | 21 | aos::Sender<frc971::control_loops::drivetrain::Goal>::Builder *builder, |
| 22 | aos::Alliance alliance); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 23 | static flatbuffers::Offset<frc971::MultiSpline> StraightLine( |
| 24 | aos::Sender<frc971::control_loops::drivetrain::Goal>::Builder *builder); |
| 25 | }; |
| 26 | |
| 27 | } // namespace actors |
| 28 | } // namespace y2020 |
| 29 | |
| 30 | #endif // y2020_ACTORS_AUTO_SPLINES_H_ |