I uncoommented all the code to use the lift with the rotation sensor. Next I need to make it more usable and intuitive to setup.
This commit is contained in:
1 parent
3bbad07dea
commit
7bf206c454
5 files changed
+154
-21
No files matched your search
@@ -57,7 +57,8 @@ namespace ez {
|
||||
*
|
||||
* \param controlPeriodM
|
||||
* The current control period were in
|
||||
*
|
||||
* \param controllerM
|
||||
*
|
||||
*
|
||||
*/
|
||||
void motor_control(enum ControlPeriodM, enum ControllerM, enum ButtonsM, enum MotorGroups, float fw_motor_speed, float rev_motor_speed);
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <vector>
|
||||
#include "api.h"
|
||||
//#include "main.h"
|
||||
#include "pros/adi.hpp"
|
||||
#include "pros/rotation.hpp"
|
||||
|
||||
@@ -79,10 +78,6 @@ namespace ez{
|
||||
class LiftMech {
|
||||
private:
|
||||
std::vector<int> liftStates; // Array the lift uses to move.
|
||||
std::vector<int> firstRange;
|
||||
std::vector<int> secondRange;
|
||||
std::vector<int> thirdRange;
|
||||
std::vector<int> fourthRange;
|
||||
int numLiftStates;
|
||||
float liftKP;
|
||||
|
||||
@@ -101,10 +96,10 @@ namespace ez{
|
||||
void cycle_states();
|
||||
void reset_state();
|
||||
void lift_control(); // Computes the velocity for the lift to move at.
|
||||
int lift_range_finder(); // Finds the ranges for the arm to use
|
||||
//int lift_range_finder(); // Finds the ranges for the arm to use
|
||||
|
||||
void set_lift_kp(float _liftKP);
|
||||
void set_ranges(std::vector<int> _firstRange, std::vector<int> _secondRange, std::vector<int> _thirdRange, std::vector<int> _fourthRange);
|
||||
//void set_ranges(std::vector<int> _firstRange, std::vector<int> _secondRange, std::vector<int> _thirdRange, std::vector<int> _fourthRange);
|
||||
|
||||
int get_lift_state();
|
||||
int get_num_lift_states();
|
||||
|
||||
Reference in new issue
Block a user