Home
last modified time | relevance | path

Searched refs:motorSpeed (Results 1 – 25 of 192) sorted by relevance

12345678

/dports/devel/libpololu-avr/libpololu-avr-151002/examples_templates/motors1/
H A Dtest.c25 int motorSpeed = pot/2-256; // turn pot reading into number between -256 and 255 in main() local
26 if(motorSpeed == -256) in main()
27 motorSpeed = -255; // 256 is out of range in main()
28 set_motors(motorSpeed, motorSpeed); in main()
30 int ledDelay = motorSpeed; in main()
/dports/devel/libpololu-avr/libpololu-avr-151002/examples_templates/motors2/
H A Dtest.c32 int motorSpeed = (512 - pot) / 2; in main() local
35 print_long(motorSpeed); // print the resulting motor speed (-255 - 255) in main()
37 set_motors(motorSpeed, motorSpeed); // set speeds of motors 1 and 2 in main()
43 if (motorSpeed > 0) in main()
46 if (motorSpeed < 0) in main()
/dports/graphics/py-box2d-py/box2d-py-2.3.8/examples/
H A Dpinball.py66 motorSpeed=0,
73 rjd.motorSpeed = 0
100 self.leftJoint.motorSpeed = 20
101 self.rightJoint.motorSpeed = -20
103 self.leftJoint.motorSpeed = -10
104 self.rightJoint.motorSpeed = 10
H A Dtheo_jansen.py32 motorSpeed = 2 variable in TheoJansen
95 motorSpeed=self.motorSpeed,
187 self.motorJoint.motorSpeed = -self.motorSpeed
189 self.motorJoint.motorSpeed = self.motorSpeed
191 self.motorJoint.motorSpeed = 0
H A Dcar.py77 motorSpeed=0.0,
169 self.springs[0].motorSpeed = self.speed
171 self.springs[0].motorSpeed = 0
173 self.springs[0].motorSpeed = -self.speed
/dports/graphics/urho3d/Urho3D-1.7.1/Source/Urho3D/Urho2D/
H A DConstraintRevolute2D.cpp133 void ConstraintRevolute2D::SetMotorSpeed(float motorSpeed) in SetMotorSpeed() argument
135 if (motorSpeed == jointDef_.motorSpeed) in SetMotorSpeed()
138 jointDef_.motorSpeed = motorSpeed; in SetMotorSpeed()
141 static_cast<b2RevoluteJoint*>(joint_)->SetMotorSpeed(motorSpeed); in SetMotorSpeed()
H A DConstraintWheel2D.cpp116 void ConstraintWheel2D::SetMotorSpeed(float motorSpeed) in SetMotorSpeed() argument
118 if (motorSpeed == jointDef_.motorSpeed) in SetMotorSpeed()
121 jointDef_.motorSpeed = motorSpeed; in SetMotorSpeed()
124 static_cast<b2WheelJoint*>(joint_)->SetMotorSpeed(motorSpeed); in SetMotorSpeed()
H A DConstraintPrismatic2D.cpp161 void ConstraintPrismatic2D::SetMotorSpeed(float motorSpeed) in SetMotorSpeed() argument
163 if (motorSpeed == jointDef_.motorSpeed) in SetMotorSpeed()
166 jointDef_.motorSpeed = motorSpeed; in SetMotorSpeed()
169 static_cast<b2PrismaticJoint*>(joint_)->SetMotorSpeed(motorSpeed); in SetMotorSpeed()
H A DConstraintRevolute2D.h54 void SetMotorSpeed(float motorSpeed);
74 float GetMotorSpeed() const { return jointDef_.motorSpeed; } in GetMotorSpeed()
H A DConstraintWheel2D.h52 void SetMotorSpeed(float motorSpeed);
71 float GetMotorSpeed() const { return jointDef_.motorSpeed; } in GetMotorSpeed()
H A DConstraintPrismatic2D.h58 void SetMotorSpeed(float motorSpeed);
82 float GetMotorSpeed() const { return jointDef_.motorSpeed; } in GetMotorSpeed()
/dports/devel/libpololu-avr/libpololu-avr-151002/src/OrangutanMotors/examples/OrangutanMotorExample/
H A DOrangutanMotorExample.ino36 int motorSpeed = pot/2-256; // turn pot reading into number between -256 and 255
37 if(motorSpeed == -256)
38 motorSpeed = -255; // 256 is out of range
39 motors.setSpeeds(motorSpeed, motorSpeed);
41 int ledDelay = motorSpeed;
/dports/devel/libpololu-avr/libpololu-avr-151002/src/OrangutanMotors/examples/OrangutanMotorExample2/
H A DOrangutanMotorExample2.ino44 int motorSpeed = (512 - pot) / 2;
47 lcd.print(motorSpeed); // print the resulting motor speed (-255 - 255)
49 motors.setSpeeds(motorSpeed, motorSpeed); // set speeds of motors 1 and 2
56 if (motorSpeed > 0)
59 if (motorSpeed < 0)
/dports/graphics/reactphysics3d/reactphysics3d-0.8.0/include/reactphysics3d/constraint/
H A DHingeJoint.h67 decimal motorSpeed; member
89 motorSpeed(0), maxMotorTorque(0) {} in HingeJointInfo()
108 maxAngleLimit(initMaxAngleLimit), motorSpeed(0), in HingeJointInfo()
131 maxAngleLimit(initMaxAngleLimit), motorSpeed(initMotorSpeed), in HingeJointInfo()
202 void setMotorSpeed(decimal motorSpeed);
H A DSliderJoint.h69 decimal motorSpeed; member
88 maxTranslationLimit(1.0), motorSpeed(0), maxMotorForce(0) {} in SliderJointInfo()
108 maxTranslationLimit(initMaxTranslationLimit), motorSpeed(0), in SliderJointInfo()
132 maxTranslationLimit(initMaxTranslationLimit), motorSpeed(initMotorSpeed), in SliderJointInfo()
208 void setMotorSpeed(decimal motorSpeed);
/dports/x11-toolkits/qml-box2d/qml-box2d-21e57f/
H A Dbox2drevolutejoint.h44 Q_PROPERTY(float motorSpeed READ motorSpeed WRITE setMotorSpeed NOTIFY motorSpeedChanged)
71 float motorSpeed() const;
72 void setMotorSpeed(float motorSpeed);
141 inline float Box2DRevoluteJoint::motorSpeed() const in motorSpeed() function
H A Dbox2dwheeljoint.h43 Q_PROPERTY(float motorSpeed READ motorSpeed WRITE setMotorSpeed NOTIFY motorSpeedChanged)
64 float motorSpeed() const;
65 void setMotorSpeed(float motorSpeed);
133 inline float Box2DWheelJoint::motorSpeed() const in motorSpeed() function
H A Dbox2dwheeljoint.cpp100 void Box2DWheelJoint::setMotorSpeed(float motorSpeed) in setMotorSpeed() argument
102 if (m_motorSpeed == motorSpeed) in setMotorSpeed()
105 m_motorSpeed = motorSpeed; in setMotorSpeed()
107 wheelJoint()->SetMotorSpeed(toRadians(motorSpeed)); in setMotorSpeed()
159 jointDef.motorSpeed = toRadians(m_motorSpeed); in createJoint()
H A Dbox2dprismaticjoint.h45 Q_PROPERTY(float motorSpeed READ motorSpeed WRITE setMotorSpeed NOTIFY motorSpeedChanged)
77 float motorSpeed() const;
78 void setMotorSpeed(float motorSpeed);
162 inline float Box2DPrismaticJoint::motorSpeed() const in motorSpeed() function
H A Dbox2drevolutejoint.cpp126 void Box2DRevoluteJoint::setMotorSpeed(float motorSpeed) in setMotorSpeed() argument
128 if (m_motorSpeed == motorSpeed) in setMotorSpeed()
131 m_motorSpeed = motorSpeed; in setMotorSpeed()
133 revoluteJoint()->SetMotorSpeed(toRadians(motorSpeed)); in setMotorSpeed()
179 jointDef.motorSpeed = toRadians(m_motorSpeed); in createJoint()
H A Dbox2dprismaticjoint.cpp114 void Box2DPrismaticJoint::setMotorSpeed(float motorSpeed) in setMotorSpeed() argument
116 if (m_motorSpeed == motorSpeed) in setMotorSpeed()
119 m_motorSpeed = motorSpeed; in setMotorSpeed()
121 prismaticJoint()->SetMotorSpeed(toRadians(motorSpeed)); in setMotorSpeed()
192 jointDef.motorSpeed = toRadians(m_motorSpeed); in createJoint()
/dports/games/colobot/colobot-colobot-gold-0.2.0-alpha/src/physics/
H A Dphysics.cpp769 motorSpeed = m_motorSpeed; in MotorUpdate()
827 motorSpeed.x = 0.0f; in MotorUpdate()
828 motorSpeed.z = 0.0f; in MotorUpdate()
890 if ( motorSpeed.x > 0.0f ) in MotorUpdate()
893 m_linMotion.motorSpeed.x = m_linMotion.advanceSpeed.x * motorSpeed.x; in MotorUpdate()
895 if ( motorSpeed.x < 0.0f ) in MotorUpdate()
898 m_linMotion.motorSpeed.x = m_linMotion.recedeSpeed.x * motorSpeed.x; in MotorUpdate()
907 if ( motorSpeed.y > 0.0f ) in MotorUpdate()
910 m_linMotion.motorSpeed.y = m_linMotion.advanceSpeed.y * motorSpeed.y; in MotorUpdate()
915 m_linMotion.motorSpeed.y = m_linMotion.recedeSpeed.y * motorSpeed.y; in MotorUpdate()
[all …]
/dports/devel/arduino-core/Arduino-b439a77/libraries/Stepper/examples/stepper_speedControl/
H A Dstepper_speedControl.ino39 int motorSpeed = map(sensorReading, 0, 1023, 0, 100);
41 if (motorSpeed > 0) {
42 myStepper.setSpeed(motorSpeed);
/dports/x11-toolkits/qml-box2d/qml-box2d-21e57f/examples/revolute/
H A Drevolute.qml13 revolute.motorSpeed -= 10;
17 revolute.motorSpeed += 10;
80 motorSpeed: 0
/dports/x11-toolkits/qml-box2d/qml-box2d-21e57f/examples/cannon/
H A Dmain.qml215 motorSpeed: 0
275 joint.motorSpeed = -15;
281 joint.motorSpeed = 0;
306 joint.motorSpeed = 15;
312 joint.motorSpeed = 0;

12345678