Comments (4)
Add these 2 lines to this in SerialComm.cs
mc.workSwitchValue = mc.steerSwitchValue & 1;
mc.steerSwitchValue = mc.steerSwitchValue & 2;
Code:
//called by the AutoSteer module delegate every time a chunk is rec'd
private void SerialLineReceivedAutoSteer(string sentence)
{
//spit it out no matter what it says
mc.serialRecvAutoSteerStr = sentence;
//0 - steer angle, 1 - pwm, 2 - heading in degrees * 16, 3 - roll in degrees * 16, 4 - steerSwitch position
string[] words = mc.serialRecvAutoSteerStr.Split(',');
if (words.Length == 5)
{
//first 2 used for display mainly in autosteer window chart as strings
//parse the values
if (ahrs.isHeadingBNO)
{
mc.prevGyroHeading = mc.gyroHeading;
int.TryParse(words[2], out mc.gyroHeading);
}
if (ahrs.isRollDogs) int.TryParse(words[3], out mc.rollRaw);
int.TryParse(words[4], out mc.steerSwitchValue);
mc.workSwitchValue = mc.steerSwitchValue & 1;
mc.steerSwitchValue = mc.steerSwitchValue & 2;
}
}
from cerea.
Quote:
Originally Posted by BrianTee View Post
........ Forgot the equals. At the moment AOG doesn't use the switch setting..........
As Brian said: not yet working!
from cerea.
Quote:
Originally Posted by Weder View Post
As Brian said: not yet working!
todo - would be usefull for some work with no youturn...
from cerea.
I'll forward that problem to the hardware engineering team, those guys are a bunch of slackers!
from cerea.
Related Issues (2)
- Steering Sensor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cerea.