/dports/devel/libpololu-avr/libpololu-avr-151002/examples_templates/motors1/ |
H A D | test.c | 25 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 D | test.c | 32 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 D | pinball.py | 66 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 D | theo_jansen.py | 32 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 D | car.py | 77 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 D | ConstraintRevolute2D.cpp | 133 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 D | ConstraintWheel2D.cpp | 116 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 D | ConstraintPrismatic2D.cpp | 161 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 D | ConstraintRevolute2D.h | 54 void SetMotorSpeed(float motorSpeed); 74 float GetMotorSpeed() const { return jointDef_.motorSpeed; } in GetMotorSpeed()
|
H A D | ConstraintWheel2D.h | 52 void SetMotorSpeed(float motorSpeed); 71 float GetMotorSpeed() const { return jointDef_.motorSpeed; } in GetMotorSpeed()
|
H A D | ConstraintPrismatic2D.h | 58 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 D | OrangutanMotorExample.ino | 36 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 D | OrangutanMotorExample2.ino | 44 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 D | HingeJoint.h | 67 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 D | SliderJoint.h | 69 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 D | box2drevolutejoint.h | 44 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 D | box2dwheeljoint.h | 43 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 D | box2dwheeljoint.cpp | 100 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 D | box2dprismaticjoint.h | 45 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 D | box2drevolutejoint.cpp | 126 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 D | box2dprismaticjoint.cpp | 114 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 D | physics.cpp | 769 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 D | stepper_speedControl.ino | 39 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 D | revolute.qml | 13 revolute.motorSpeed -= 10; 17 revolute.motorSpeed += 10; 80 motorSpeed: 0
|
/dports/x11-toolkits/qml-box2d/qml-box2d-21e57f/examples/cannon/ |
H A D | main.qml | 215 motorSpeed: 0 275 joint.motorSpeed = -15; 281 joint.motorSpeed = 0; 306 joint.motorSpeed = 15; 312 joint.motorSpeed = 0;
|