Files
WII5Firmware/app/wii5_buoy/wii5_buoy.ino
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

41 lines
990 B
Arduino

// 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 wii5_buoy.ino
* @brief Arduino sketch entry point: setup() and loop() for the WII5 buoy firmware.
*/
#include "WII5.h"
#include "WII5Controller.h"
void setup () {
// Put everthing we can into safe PIN mode (including driving high/low)
wii5Setup.beginSafe();
// Move to Setup - e.g. beginSafe(); (including safe pins below with proper names and #ifdef)
SerialConsole.begin(SerialConsole_Baud);
#ifdef WAITBOOT_HALFSECOND
SerialConsole.println(F("# WII5: Waiting for 1/2 seconds in boot mode, to allow ICSP"));
SerialConsole.flush();
delay(500);
#endif
// Blocking call - 3 seconds
wii5Setup.bootbeep();
// Do first always...
wii5Setup.begin();
// Normal WII startup
wii5Controller.begin();
}
void loop() {
wii5Controller.loop();
}