mavabene / jamautokart Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
write a class that takes care of updating the raw sensor data instead of
https://github.com/mavabene/JamAutoKart/blob/main/EncoderVandA/src/main.cpp#L39 to https://github.com/mavabene/JamAutoKart/blob/main/EncoderVandA/src/main.cpp#L43 where you do it manually in the main.cpp file
SteeringPot->SensorVal = getAnalogInt(STEERING_ANGLE_POT);
SteeringPot->Setpoint = 30;
CtrlLoop(SteeringPID,SteeringPot,SteeringMotor);
current_angle = SensorInputToUnitsFloatPtr(SteeringPot);
SteeringPot->EngVal = current_angle;
time interval for getting dx
SteeringPID->Kp = 4;
SteeringPID->Kd = 1;
SteeringPID->Ki = 0;
SteeringPot->SensorMin = 350;
SteeringPot->SensorMax = 850;
SteeringPot->MinEngVal = -45;
SteeringPot->MaxEngVal = 45;
if (init1==true)
{
init1=false;
}
what does ini1
mean?
it's okay to debug, but put debug code in a seperate function plz, to reduce the amount of code in the main loop
Line 35-73
provide documentation for functions in header fileshttps://github.com/mavabene/JamAutoKart/blob/main/EncoderVandA/include/utilities.h#L101
arduino level just process raw data, don't do any PID controls. Let's do it in ROS
void CtrlLoop(PidLoop *loop, Sensor *sens, Actuator *act)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.