Rig type 1 setting
Home
Up

Ian's software has a build-in option to do the pitch, roll and heave parameter mixing in post processing  or  automatically in the BFF driver. This option needs to be manually set in the BFF config file:

Rig_Type=0 
 is for uncoupled DOF's platforms (or post mixing done in the motor drive software)
Rig_Type=1  
is for coupled (3-point) DOF's platforms (like mine) so no post mixing needed

The below program is very simple, as all mixing is done in the BFF driver. The  BFF config file uses  Rig_Type=1

20 ON ERROR GOTO 330
30 CLOSE #1
40 OPEN "com1:4800,n,8" FOR RANDOM AS #1
50 A$=""
55 ON ERROR GOTO 50
60 LINE INPUT#1, A$
65 P$=mid$(A$,5,2)
  ' get the front actuator data
70 R$=mid$(A$,7,2)
  ' get the right-rear actuator data
75 H$=mid$(A$,9,2)
  ' get the left rear actuator data
80 P=INSTR("123456789ABCDEF",right$(P$,1))+16*INSTR("123456789ABCDEF",left$(P$,1))
85 R=INSTR("123456789ABCDEF",right$(R$,1))+16*INSTR("123456789ABCDEF",left$(R$,1))
90 H=INSTR("123456789ABCDEF",right$(H$,1))+16*INSTR("123456789ABCDEF",left$(H$,1))
120 DAC1=P  '
the front actuator data to DAC1
130 DAC2=R  '
the right-rear actuator  data to DAC2
140 DAC3=H  '
the left rear actuator  data to DAC3
190 PRINT DAC1;" "DAC2;" "DAC3
200 IF DAC1>255 or DAC1<0 then goto 240
210 Out 888,DAC1 
'send and latch DAC1 value
220 Out 890,10
230 out 890,11
240 IF DAC2>255 or DAC2<0 then goto 280
250 Out 888,DAC2
'send and latch DAC 2 value
260 Out 890,3
270 out 890,11
280 IF DAC3>255 or DAC3<0 then goto 320
290 Out 888,DAC3 
'send and latch DAC3 value
300 Out 890,15
310 out 890,11
320 GOTO 50
330 RESUME 20

Note that the pitch, roll and heave amplitudes need to be scaled to stay within actuator range during normal flight. Especially heave is a very dynamic parameter that will use lots of actuator range. For good heave feeling, you want to maximize the range, but this easily results in maxed out actuators in many flight maneuvers. The ranges can be scaled via Ian's software (upper and lower bound of movement)

An example that uses parameter mixing in GWbasic is shown in Rig type 0

Back Next