405 Documentation  9.0
lab09_main.py File Reference

Balancing the platform. More...

Functions

def lab09_main.balance (controller)
 Balance. More...
 
def lab09_main.main ()
 Main. More...
 

Detailed Description

Balancing the platform.

This script incorperates the drivers developed for the balancing platform's motors, encoders, and resistive touch panel. A controller uses the functions developed in the drivers to collect potentiometer and touch panel readings. These readings inform motor torque and duty cycle calculations to level the platform and center the object placed atop the tilt table.

Author
Hunter Morse
Jacob Everest
Date
March 11, 2021

Function Documentation

◆ balance()

def lab09_main.balance (   controller)

Balance.

This is the main loop run during operation. It contnuously balances the motor at its initial encoder reading

Parameters
controllerController object for the full base assembly (Encoders + MotorBase)

◆ main()

def lab09_main.main ( )

Main.

Here all pertenent variables and objects are initialized prior to begining the balance loop. This function is automatically run once the system has booted