Main Scripts¶
These scripts run sensor readings on the Wheelchair RPi side
main_code.py¶
This file controls sensor measurements for the Wheelchair
- main_code.SoC(sd_time, dt, ibat, vbat)¶
This function updates the State Of Charge (SoC) :param sd_time: last shutdown time :param dt: change in time :param ibat: current of the battery :param vbat: voltage of the battery
- main_code.get_I2C()¶
This function communicates with the IMU, BME680, and BMS sensors over I2C to acquire data
- main_code.get_serial()¶
This function handles GPS data acquisition
- main_code.runProgram()¶
This function runs the processes when testing the file independently :return: