Search found 6 matches
- 20 Feb 2012, 03:38
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
Re: NXC w/ mindsensors PSP-Nx and Servos
It would help if I knew what you were trying to accomplish with the combination of NXTServo and PSP devices. In your simple program it looks like you want the right Y joystick value (which will range from -127 to 128) to determine the speed that the servo uses to move + or - 2 "degrees" f...
- 18 Feb 2012, 01:29
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
Re: NXC w/ mindsensors PSP-Nx and Servos
I finally found out what was wrong with the program. I was using SensorPort instead of ServoSensorPort in the NXTServo_Quick_Servo_Setup parameters. On the other hand I ran into a different problem. Sometimes the servo will jump to the other side instead of stopping. Any ideas on how to fix this? Th...
- 17 Feb 2012, 22:13
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
Re: NXC w/ mindsensors PSP-Nx and Servos
Well, I went back and looked at the online documentation I could find and tried what you suggested by starting simple. I was able to get the servos to move with just basic NXTServo_Quick_Servo_Setup() commands, but I was met with problems when trying to incorporate the PSP-Nx into the mix. Do I have...
- 15 Feb 2012, 04:29
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
Re: NXC w/ mindsensors PSP-Nx and Servos
Honestly, the team I am on is on a deadline so we took what programming knowledge we do know and combined it to try to come up with what we thought would work. It obviously didn't/hasn't. We are just trying to get a working program. I am more than willing to use the built in commands for the Mindsen...
- 14 Feb 2012, 00:03
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
Re: NXC w/ mindsensors PSP-Nx and Servos
Thank you very much for clearing that up. I have a few more (noob) questions though. To get the values for the joysticks (which should be integers) do I need to define l_j_x, l_j_y, r_j_x, and r_j_y as integers, or should they already be defined as so from the PSP-Nx library? This is what I have so ...
- 13 Feb 2012, 22:39
- Forum: Mindstorms Software
- Topic: NXC w/ mindsensors PSP-Nx and Servos
- Replies: 9
- Views: 10535
NXC w/ mindsensors PSP-Nx and Servos
Hey guys, This is my first time writing with NXC and/or object oriented programming in general. I am making a program that takes values from the Mindsensors PSP-Nx controller and moves servos using the Mindsensors NXTServo accordingly. Whenever I try to compile i find weird errors talking about pare...