Initial commit
This commit is contained in:
commit
db8f8408af
12 changed files with 1354 additions and 0 deletions
43
lsense.h
Normal file
43
lsense.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* @file lsense.h
|
||||
* @brief Light sensor management and command handling
|
||||
*
|
||||
* Created: 21.09.2025 05:53:32
|
||||
* Author: ThePetrovich
|
||||
*
|
||||
* Copyright YKSA - Sakha Aerospace Systems, LLC.
|
||||
* See the LICENSE file for details.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef LSENSE_H
|
||||
#define LSENSE_H
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#define NUM_BUSES 3
|
||||
#define SENSORS_PER_BUS 2
|
||||
|
||||
enum {
|
||||
BUS_X = 0, // X-axis (bus 0)
|
||||
BUS_Y = 1, // Y-axis (bus 1)
|
||||
BUS_Z = 2 // Z-axis (bus 2)
|
||||
};
|
||||
|
||||
enum {
|
||||
SENSOR_NEG = 0, // Negative sensor (addresses 0)
|
||||
SENSOR_POS = 1 // Positive sensor (addresses 1)
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Send light sensor presence information via serial
|
||||
*/
|
||||
void lsense_cmd_presence(void);
|
||||
|
||||
/**
|
||||
* @brief Read and send light sensor data via serial
|
||||
*/
|
||||
void lsense_cmd_read(void);
|
||||
|
||||
#endif // LSENSE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue