push updated stuff

This commit is contained in:
ary 2023-11-07 20:30:24 -05:00
parent 28dc7ea7eb
commit 83b13dc784
4 changed files with 33 additions and 28 deletions

View File

@ -49,7 +49,7 @@
#include "asset.h"
#include "gif-pros/gifclass.hpp"
//#include "okapi/api.hpp"
#include "okapi/api.hpp"
//#include "pros/api_legacy.h"
/**

View File

@ -1,7 +1,7 @@
#include "main.h"
#define DRIVE_SPEED 110
#define TURN_SPEED 127
#define DRIVE_SPEED 120
#define TURN_SPEED 105
#define SWING_SPEED 90
// R1 -> WINGS, L1 -> CATA, L2 -> PTO, R2 -> INTAKE
// Renu's control preferences

View File

@ -35,35 +35,43 @@ void near_side() {
toggleIntake(true);
pros::delay(100);
driveSync(-35, true);
driveSync(-28, true);
turnSync(75);
pros::delay(100);
toggleIntake(false);
driveSync(35, true);
driveSync(-20, true);
driveSync(-35, true);
turnSync(300);
driveSync(50, true);
turnSync(313);
driveSync(40, true);
pros::delay(400);
toggleIntake(true);
driveSync(-31, true);
driveSync(-2, true);
setTurnScale(0.75);
turnSync(90);
toggleIntake(false);
wings.open();
driveSync(50, true);
driveSync(55, true);
wings.close();
driveSync(-20, true);
//driveSync(100, true);
}
void far_side() {
toggleIntake(true);
wings.open();
pros::delay(1000);
turnSync(-180);
toggleIntake(true);
driveSync(30, true);
wings.close();
turnSync(40);
toggleIntake(false);
driveSync(35, true);
driveSync(-10, true);
turnSync(135);
driveSync(90, true);
wings.open();
turnSync(120);
}
// void far_side() {
@ -74,14 +82,13 @@ void far_side() {
// }
void skills() {
toggleIntake(true);
driveSync(30, true);
toggleIntake(false);
turnSync(45);
driveSync(35, true);
driveSync(-35, true);
turnSync(-60);
driveSync(10, true);
wings.open();
}
void test_seq() {
driveSync(20, true);
}
void odom_test() {
chassis_odom.moveTo(10, 10, 1000);
chassis_odom.turnTo(15, 15, 1000);
};

View File

@ -42,10 +42,8 @@ void initialize() {
*/
ary::autonselector::auton_selector.add_autons({
Auton("Near side (close to alliance goal) \n\nTo run when near alliance goal", near_side),
Auton("Far side (far from alliance goal) \n\nTo run when far from alliance goal", far_side),
Auton("Skills \n\nPEAK!!!", skills),
Auton("TESTING TURNS", test_seq),
Auton("Testing Odometry \n\nBaltimore behavior", odom_test)
Auton("Far side (far from alliance goal) \n\nTo run when far from alliance GOAL", far_side),
Auton("Skills \n\nCLOUDABUNGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", skills)
});
motorsCoast(); // Allow the motors to coast initially