Files
WII5Firmware/WII5ModeManualTest.h
T
scottp 295abb37ee Initial public release of WII5 Buoy firmware
Firmware for an autonomous wave-measurement buoy (ATmega2560-based
WII5 v2 board). Reads wave motion from a Sparton AHRS-M1/M2 IMU,
samples GPS and battery state, and reports back over Iridium SBD
satellite telemetry. Originally developed 2012-2024.

This is the first public release. Code, documentation, and field-tested
operating modes (Capture, Sleep, Position, ManualTest, SelfTest,
LowBattery) are licensed under Apache 2.0 — see LICENSE and NOTICE.

See README.md for an overview and build instructions, CONTRIBUTING.md
for how to contribute, and DEPLOYMENTS.md for the field-deployment log.
2026-05-07 16:27:18 +10:00

57 lines
1.4 KiB
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2012-2024 Scott Penrose <scottp@dd.com.au> and WII5 Buoy contributors
//
// This file is part of WII5 Buoy firmware.
// See LICENSE for full terms.
/**
* @file WII5ModeManualTest.h
* @brief Manual test mode: operator-driven hardware exercise via the console.
*/
#ifndef WII5ModeManualTest_h
#define WII5ModeManualTest_h
#include <Arduino.h>
#include <WII5.h>
#include <TimeLib.h>
/**
* @brief Manual test mode: operator-driven hardware exercise.
*
* Provides a console REPL where the operator types single-letter
* commands ("X;", "G;", etc.) to exercise individual subsystems
* (LEDs, buttons, GPS, Iridium, Sparton, SD cards, etc.). Used in the
* lab and during pre-deployment checkout.
*/
class WII5ModeManualTest : public WII5Mode {
public:
WII5ModeManualTest() {}
/** @brief Reset internal counters. */
void reset();
/** @brief One-time bring-up. */
void begin();
/** @brief Tick: read console, dispatch one-shot test commands. */
void loop();
bool enableMetadata;
bool enableIridium;
bool enableGps;
bool enableSparton;
bool enableBattery;
bool waitGPS;
// virtual void metadataPrint(File* fh);
protected:
elapsedMillis wait;
uint8_t pulsePin;
elapsedMillis pulseWait;
// Lots of improvement...
};
extern WII5ModeManualTest wii5ModeManualTest;
#endif