|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Control Mapping problems in WindRiver
Okay we have tried several things, and are trying to mutate these functions, but are unable to and we are unsure of how.
We are trying to get it to several things: 1) when we use Joystick to do the function GetX() it says GetX() hasn't been defined, and we tried Joystick.GetX() and it says you need a parent class or something b4 Joystick, so how do I declare GetX?? 2) We are trying to use the log function also in this, but we can't find a way to convert float to a non double number or a double number for use by myRobot.*.* ect... 3) How do you do a state machine with a button? This is confusing, and I have looked through the header files to try and understand what is going on, but the files just call a bunch more header files and it just looks all stubbed out, and it seems really hard to mutate, so any help would be very nice! ![]() |
|
#2
|
||||
|
||||
|
Re: Control Mapping problems in WindRiver
Quote:
Code:
Joystick stick(1); // USB joystick in port 1. Code:
float value = stick.GetX(); // Get the X value of the joystick. Quote:
Again, I'm not entirely sure what you want to do, but if you're talking about using a button to toggle something on/off that has been discussed here: http://www.chiefdelphi.com/forums/sh...ad.php?t=72749 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windriver downloading code problems. | HUmar104 | C/C++ | 4 | 25-01-2009 20:53 |
| WindRiver WPILib problems | Dr Nick | C/C++ | 5 | 13-01-2009 16:17 |
| New Control System Problems | ExarKun666 | Technical Discussion | 13 | 23-12-2008 16:29 |
| Control Problems | Inverted | Programming | 24 | 20-02-2006 04:27 |
| Electronic Speed Control Problems | DustinB_3 | Electrical | 9 | 09-11-2005 23:42 |