Rev 855 | Rev 882 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 855 | Rev 871 | ||
---|---|---|---|
Line 174... | Line 174... | ||
174 | ToNaviCtrl.Param.Byte[5] = Parameter_UserParam6; |
174 | ToNaviCtrl.Param.Byte[5] = Parameter_UserParam6; |
175 | ToNaviCtrl.Param.Byte[6] = Parameter_UserParam7; |
175 | ToNaviCtrl.Param.Byte[6] = Parameter_UserParam7; |
176 | break; |
176 | break; |
Line 177... | Line 177... | ||
177 | 177 | ||
178 | case SPI_CMD_STICK: |
178 | case SPI_CMD_STICK: |
179 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]]; if(tmp > 128) tmp = 128; else if(tmp < -127) tmp = -127; |
179 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]]; if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127; |
180 | ToNaviCtrl.Param.Byte[0] = (char) tmp; |
180 | ToNaviCtrl.Param.Byte[0] = (char) tmp; |
181 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; if(tmp > 128) tmp = 128; else if(tmp < -127) tmp = -127; |
181 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127; |
182 | ToNaviCtrl.Param.Byte[1] = (char) tmp; |
182 | ToNaviCtrl.Param.Byte[1] = (char) tmp; |
183 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]; if(tmp > 128) tmp = 128; else if(tmp < -127) tmp = -127; |
183 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_ROLL]]; if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127; |
184 | ToNaviCtrl.Param.Byte[2] = (char) tmp; |
184 | ToNaviCtrl.Param.Byte[2] = (char) tmp; |
185 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]]; if(tmp > 128) tmp = 128; else if(tmp < -127) tmp = -127; |
185 | tmp = PPM_in[EE_Parameter.Kanalbelegung[K_NICK]]; if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127; |
186 | ToNaviCtrl.Param.Byte[3] = (char) tmp; |
186 | ToNaviCtrl.Param.Byte[3] = (char) tmp; |
187 | ToNaviCtrl.Param.Byte[4] = (unsigned char) Poti1; |
187 | ToNaviCtrl.Param.Byte[4] = (unsigned char) Poti1; |
188 | ToNaviCtrl.Param.Byte[5] = (unsigned char) Poti2; |
188 | ToNaviCtrl.Param.Byte[5] = (unsigned char) Poti2; |
189 | ToNaviCtrl.Param.Byte[6] = (unsigned char) Poti3; |
189 | ToNaviCtrl.Param.Byte[6] = (unsigned char) Poti3; |