SDK Question Note to Martin - EngineStatus flags

Col_Klonk

Member
Joined
Aug 29, 2015
Messages
470
Reaction score
0
Points
16
Location
This here small Dot
Any chance of making a change to the Attitude modes to binary flags.
This will eliminate the need to switch between modes.
Maybe some systems (Shuttle) require the switching (Set a Flag), but it would be nice for the better co-ordinated nauts to be able to operate both at the same time... much like aircraft controls

Also is it possible to set negative hover thrust... Press the craft onto a Low-G object so that it can drill a locking pin into the dirt ?
:thumbup:

Code:
;/** \brief Engine status */
;typedef struct {
;	double main;       ///<     -1 (full retro) .. +1 (full main)
;	double hover;      ///<     0 .. +1 (full hover)
;	int attmode;       ///<     0=rotation, 1=translation
;} ENGINESTATUS;

; NOTE TO MARTIN
;================
; ATTMODE SHOULD BE SET TO BIT FLAGS WHERE BOTH CAN BE OPERATED AT THE SAME TIME
EngineStatus	Struct
	main		Real8	0.0	; -1 (full retro) .. +1 (full main)
	hover		Real8	0.0	;  0 .. +1 (full hover)
	attmode		DWORD	0	;  0=rotation, 1=translation
EngineStatus	Ends

;New Idea ?
AttMode_None		        equ	0	;
AttMode_Rotation		equ	1	; Binary bit flags settings
AttMode_Translation		equ	2	;
AttMode_Other_Etc		equ	4...	;
 
Last edited:

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,882
Reaction score
2,133
Points
203
Location
between the planets
You can achieve what you want by intercepting keyboard inputs in clbkConsumeBufferedKey, and then setting thruster levels manually (autopilots set thruster levels manually all the time, it's pretty simple).
 
Last edited:

Col_Klonk

Member
Joined
Aug 29, 2015
Messages
470
Reaction score
0
Points
16
Location
This here small Dot
Ja, I had thought along those lines wrt the reaction controls... just that having that voice going mad would make one dilly.
We'll have to disable the voices for that :thumbup:
 
Top