![]() ![]() remember to leave the physical throttle axis unmapped and map the cms axis in its place. The last line saves the variable to one of the cms axes. thats also what the A1/100 in the following is for, its essentially decimal fixed point math. but since you are using int math this number doesnt make sense, so multiply it by 100 and round to the nearest integer, in my case 116. i want the threashold to be around 220, so there is a small deadzone at the base of the throttle. but my throttle only seems to have a range of 0-224. i want to map the output into the range 0-255. The 116 in the second line is your scale factor. The first line copies the throttle axis to a variable, if your throttle axis is somewhere other than js2.a3, change this, the format is js(stick number).a(axisnumber). so some kind of input scaling options would be a good idea, possibly exposed through tweakables. some craft maneuver more aggressively than others, so no one set of settings fits everything. Needless to say i like to have different joystick parameters for different flight modes, different control methods (thrusters, reaction wheels, control surfaces, gimbals), and possibly even for different craft. i actually have a throttle safing script in my ch profile to avoid accidental firing. for some reason my throttle doesnt go all the way to zero and it sometimes wastes fuel because of this. With the throttle i want it flat but with a safe zone at the lower 5% (not the middle, idk why ksp puts the deadzone in the middle of the throttle, that doesn't make any sense) so that i dont waste fuel. then again i want my gimbals and reaction wheels to be linear with no deadzone, but my thrusters to do a j-curve with a deadzone. but in space i like a little bit of a deadzone so that thrusters remain off with the stick at about 5% of its range, ramping into a linear curve within another 20% (essentially a j-curve). in the atmosphere i want zero deadzone and a flat curve. then again in space joystick usage is completely different from in the atmosphere. frankly i like linear response curves (saitek is notorious for funky non flat response curves, fortunately im a ch user). Different joysticks have different response curves, some are adjustable, others are not. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |