Ignore:
Timestamp:
01/10/17 13:51:37 (8 years ago)
Author:
(none)
Message:
move structs into header
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FACT++_lidctrl_usb/src/HeadersLid.h

    r18724 r18725  
    22#define FACT_HeadersLid
    33
    4 namespace LidCtrlUsb
     4namespace Lid
    55{
     6
     7    struct motor_status_t{
     8        float current_mean;
     9        float position_mean;
     10        int32_t speed;
     11    } __attribute__((__packed__));
     12
     13    struct mean_var_samples_t {
     14        uint32_t mean;
     15        uint32_t var;
     16        uint16_t samples;
     17    }__attribute__((packed));
     18
     19    struct message_t {
     20        mean_var_samples_t inner_motor_current;
     21        mean_var_samples_t outer_motor_current;
     22
     23        mean_var_samples_t inner_motor_position;
     24        mean_var_samples_t outer_motor_position;
     25
     26        int16_t inner_motor_speed;
     27        int16_t outer_motor_speed;
     28
     29        char current_cmd;
     30        uint8_t system_state;
     31    }__attribute__((packed));
     32
    633    namespace State
    734    {
Note: See TracChangeset for help on using the changeset viewer.