Messa in campo 4 file - 26/06/2020 Francia

Dependencies:   mbed X_NUCLEO_IHM03A1_for

Fork of FORIGO_Modula_V7_3_VdcStep_maggio2020 by Francesco Pistone

canbus.hpp

Committer:
nerit
Date:
2020-07-20
Revision:
45:162116db828a
Parent:
19:231b8931cabc

File content as of revision 45:162116db828a:

#if defined(canbusActive)
    #if defined(M1)
        const unsigned int  RX_ID = 0x100;
        const unsigned int  TX_ID = 0x101;
        const unsigned int  TX_SI = 0x11A;
        const float ritAvv = 0.1f;
        #define  speedMaster
    #endif
    #if defined(M2)
        const unsigned int  RX_ID = 0x102;
        const unsigned int  TX_ID = 0x103;
        const float ritAvv = 0.5f;
        #define mezzo
    #endif
    #if defined(M3)
        const unsigned int  RX_ID = 0x104;
        const unsigned int  TX_ID = 0x105;
        const float ritAvv = 1.0f;
        #define seedSensor
    #endif
    #if defined(M4)
        const unsigned int  RX_ID = 0x106;
        const unsigned int  TX_ID = 0x107;
        const float ritAvv = 1.5f;
        #define mezzo
    #endif
    #if defined(M5)
        const unsigned int  RX_ID = 0x108;
        const unsigned int  TX_ID = 0x109;
        const float ritAvv = 2.0f;
    #endif
    #if defined(M6)
        const unsigned int  RX_ID = 0x110;
        const unsigned int  TX_ID = 0x111;
        const float ritAvv = 2.5f;
        #define mezzo
    #endif
    #if defined(M7)
        const unsigned int  RX_ID = 0x112;
        const unsigned int  TX_ID = 0x113;
        const float ritAvv = 3.0f;
    #endif
    #if defined(M8)
        const unsigned int  RX_ID = 0x114;
        const unsigned int  TX_ID = 0x115;
        const float ritAvv = 3.5f;
        #define mezzo
    #endif
    #if defined(M9)
        const unsigned int  RX_ID = 0x116;
        const unsigned int  TX_ID = 0x117;
    #endif
    #if defined(M10)
        const unsigned int  RX_ID = 0x118;
        const unsigned int  TX_ID = 0x119;
        #define mezzo
    #endif

// indirizzi validi per i comandi in broadcast
    const unsigned int RX_Broadcast = 0x130;
    const unsigned int TX_Broadcast = 0x131;
    const unsigned int RX_Settings  = 0x132;
    const unsigned int RX_AngoloPh  = 0x133;
    const unsigned int RX_AngoloAv  = 0x134;
    const unsigned int RX_Quinconce = 0x135;
    const unsigned int RX_QuincSinc = 0x11A;
    const unsigned int RX_Configure = 0x11B;
#endif