uint16_tonboard_control_sensors_present;///< Bitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
uint16_tonboard_control_sensors_enabled;///< Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
uint16_tonboard_control_sensors_health;///< Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
uint16_tload;///< Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
uint16_tvoltage_battery;///< Battery voltage, in millivolts (1 = 1 millivolt)
uint16_tcurrent_battery;///< Battery current, in milliamperes (1 = 1 milliampere)
uint16_twatt;///< Watts consumed from this battery since startup
uint16_terrors_uart;///< Dropped packets on all links (packets that were corrupted on reception on the MAV)
uint16_terrors_i2c;///< Dropped packets on all links (packets that were corrupted on reception)
uint16_terrors_spi;///< Dropped packets on all links (packets that were corrupted on reception)
uint16_terrors_can;///< Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,0,onboard_control_sensors_present);// Bitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,2,onboard_control_sensors_enabled);// Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,4,onboard_control_sensors_health);// Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,6,load);// Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
put_uint16_t_by_index(msg,8,voltage_battery);// Battery voltage, in millivolts (1 = 1 millivolt)
put_uint16_t_by_index(msg,10,current_battery);// Battery current, in milliamperes (1 = 1 milliampere)
put_uint16_t_by_index(msg,12,watt);// Watts consumed from this battery since startup
put_uint16_t_by_index(msg,14,errors_uart);// Dropped packets on all links (packets that were corrupted on reception on the MAV)
put_uint16_t_by_index(msg,16,errors_i2c);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,18,errors_spi);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,20,errors_can);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,0,onboard_control_sensors_present);// Bitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,2,onboard_control_sensors_enabled);// Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,4,onboard_control_sensors_health);// Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,6,load);// Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
put_uint16_t_by_index(msg,8,voltage_battery);// Battery voltage, in millivolts (1 = 1 millivolt)
put_uint16_t_by_index(msg,10,current_battery);// Battery current, in milliamperes (1 = 1 milliampere)
put_uint16_t_by_index(msg,12,watt);// Watts consumed from this battery since startup
put_uint16_t_by_index(msg,14,errors_uart);// Dropped packets on all links (packets that were corrupted on reception on the MAV)
put_uint16_t_by_index(msg,16,errors_i2c);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,18,errors_spi);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,20,errors_can);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,0,onboard_control_sensors_present);// Bitmask showing which onboard controllers and sensors are present. Value of 0: not present. Value of 1: present. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,2,onboard_control_sensors_enabled);// Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,4,onboard_control_sensors_health);// Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: not enabled. Value of 1: enabled. Indices: 0: 3D gyro, 1: 3D acc, 2: 3D mag, 3: absolute pressure, 4: differential pressure, 5: GPS, 6: optical flow, 7: computer vision position, 8: laser based position, 9: external ground-truth (Vicon or Leica). Controllers: 10: 3D angular rate control 11: attitude stabilization, 12: yaw position, 13: z/altitude control, 14: x/y position control, 15: motor outputs / control
put_uint16_t_by_index(msg,6,load);// Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000
put_uint16_t_by_index(msg,8,voltage_battery);// Battery voltage, in millivolts (1 = 1 millivolt)
put_uint16_t_by_index(msg,10,current_battery);// Battery current, in milliamperes (1 = 1 milliampere)
put_uint16_t_by_index(msg,12,watt);// Watts consumed from this battery since startup
put_uint16_t_by_index(msg,14,errors_uart);// Dropped packets on all links (packets that were corrupted on reception on the MAV)
put_uint16_t_by_index(msg,16,errors_i2c);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,18,errors_spi);// Dropped packets on all links (packets that were corrupted on reception)
put_uint16_t_by_index(msg,20,errors_can);// Dropped packets on all links (packets that were corrupted on reception)