Subversion Repositories FlightCtrl

Rev

Rev 921 | Rev 991 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 921 Rev 978
Line 4... Line 4...
4
 
4
 
5
//struct str_ToNaviCtrl_Version   ToNaviCtrl_Version;
5
//struct str_ToNaviCtrl_Version   ToNaviCtrl_Version;
6
//struct str_FromNaviCtrl_Version   FromNaviCtrl_Version;
6
//struct str_FromNaviCtrl_Version   FromNaviCtrl_Version;
7
struct str_ToNaviCtrl   ToNaviCtrl;
7
struct str_ToNaviCtrl   ToNaviCtrl;
-
 
8
struct str_FromNaviCtrl   FromNaviCtrl;
Line 8... Line 9...
8
struct str_FromNaviCtrl   FromNaviCtrl;
9
struct str_FromNaviCtrl_Value FromNaviCtrl_Value;
9
 
10
 
Line 10... Line 11...
10
unsigned char              SPI_BufferIndex;
11
unsigned char              SPI_BufferIndex;
Line 233... Line 234...
233
    if(FromNaviCtrl.BeepTime > beeptime && !WinkelOut.CalcState) beeptime = FromNaviCtrl.BeepTime;
234
    if(FromNaviCtrl.BeepTime > beeptime && !WinkelOut.CalcState) beeptime = FromNaviCtrl.BeepTime;
Line 234... Line 235...
234
       
235
       
235
          switch (FromNaviCtrl.Command)
236
          switch (FromNaviCtrl.Command)
236
          {
237
          {
237
            case  SPI_CMD_OSD_DATA:
238
            case  SPI_CMD_OSD_DATA:
238
//                                ToFlightCtrl.Param.Byte[0] = OsdBar;
239
               FromNaviCtrl_Value.OsdBar = FromNaviCtrl.Param.Byte[0];
239
//                                ToFlightCtrl.Param.Int[1]  = Distance;
240
               FromNaviCtrl_Value.Distance = FromNaviCtrl.Param.Int[1];
Line 240... Line 241...
240
                  break;
241
                  break;
241
 
242
 
242
            case  SPI_CMD_GPS_POS:
243
            case  SPI_CMD_GPS_POS: